Package co.paralleluniverse.fibers
Fibers - lightweight threads
-
Interface Summary Interface Description CustomFiberWriter A callback used byFiber.parkAndCustomSerialize(CustomFiberWriter).FiberFactory Creates newfiberson demand.FiberSchedulerTask FibersMXBean An MXBean that monitors fibers scheduled by a singleFiberScheduler.FiberWriter A callback used byFiber.parkAndSerialize..Joinable<V> -
Class Summary Class Description CustomFiberWriterSerializer DefaultFiberScheduler The defaultFiberSchedulerused to schedule fibers that do not specify a particular scheduler.Fiber<V> A lightweight thread.FiberAsync<V,E extends java.lang.Throwable> A general helper class that transforms asynchronous requests to synchronous (fiber-blocking) calls.FiberControl FiberExecutorScheduler A fiber scheduler that uses a givenExecutorfor scheduling.FiberForkJoinScheduler AForkJoinPoolbased scheduler for fibers.FiberInfo Current information about a fiber returned byFibersMXBean.FiberScheduler A thread-pool based scheduler for fibers.FiberUtil Static utility methods for working with fibers.SchedulerLocal<T> Associates a value with the currentFiberSchedulerStack Internal Class - DO NOT USE! (Public so that instrumented code can access it) ANY CHANGE IN THIS CLASS NEEDS TO BE SYNCHRONIZED WITHInstrumentMethodThreadLocalSerializer TrueThreadLocal<T> AThreadLocalthat is local to the current thread, rather than Strand. -
Exception Summary Exception Description RuntimeExecutionException Similar toExecutionExceptiononly as an unchecked, rather than a checked, exception.RuntimeSuspendExecution SuspendExecution An exception used to initiate the control transfer.VerifyInstrumentationException -
Annotation Types Summary Annotation Type Description Suspendable Marks a method as suspendable.