Package no.digipost.concurrent
-
Interface Summary Interface Description CompletionHandler.ConsumerBuilder<R> CompletionHandler.FunctionBuilder<R,U> TargetState An object which knows if a certain state has been reachedyet
. -
Class Summary Class Description CompletionHandler Convenience utility to build various handler functions which will be called with either the first argument set to a value of any type, or the second argument as a Throwable indicating an error.OneTimeAssignment<V> A reference which may or may not be assigned a value, with the added constraint that it can only be assigned once.OneTimeToggle A kind of specialized variant ofAtomicBoolean
which can only be toggled once.SignalMediator A signal mediator is a many-to-one carrier of a simple "no-content" signal that one other part is interested in occurring.Waiter Instances of this class has no other purpose than to hold execution. -
Enum Summary Enum Description TargetState.TaskControl Control signals returned from tasks to control execution withTargetState.untilThen(Supplier, Consumer)
-
Exception Summary Exception Description OneTimeAssignment.AlreadyAssigned Waiter.WasInterrupted