Package co.paralleluniverse.fibers
Fibers - lightweight threads
-
Interface Summary Interface Description CustomFiberWriter A callback used byFiber.parkAndCustomSerialize(CustomFiberWriter)
.FiberFactory Creates newfibers
on 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 defaultFiberScheduler
used 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 givenExecutor
for scheduling.FiberForkJoinScheduler AForkJoinPool
based 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 currentFiberScheduler
Stack Internal Class - DO NOT USE! (Public so that instrumented code can access it) ANY CHANGE IN THIS CLASS NEEDS TO BE SYNCHRONIZED WITHInstrumentMethod
ThreadLocalSerializer TrueThreadLocal<T> AThreadLocal
that is local to the current thread, rather than Strand. -
Exception Summary Exception Description RuntimeExecutionException Similar toExecutionException
only 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.