Package org.jgrapes.core
Class CompletionEvent<T extends Event<?>>
java.lang.Object
org.jgrapes.core.internal.EventBase<T>
org.jgrapes.core.Event<T>
org.jgrapes.core.CompletionEvent<T>
- All Implemented Interfaces:
Future<T>
,Associator
,Eligible
- Direct Known Subclasses:
KeyValueStoreData
,NioRegistration.Completed
,Request.In.Completed
,Started
A base class for events that signal the completion of some other
(monitored) event and provide this other event as their result.
Events of this type are automatically fired when the framework detects that the monitored event has completed.
Use event()
to conveniently access the monitored event
while handling the completion event.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
Fields inherited from class org.jgrapes.core.internal.EventBase
completed, completionEvents, invokedFor
-
Constructor Summary
ConstructorDescriptionCompletionEvent
(T monitoredEvent, Channel... channels) Instantiates a new completion event. -
Method Summary
Methods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo
Methods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGet
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
CompletionEvent
Instantiates a new completion event.- Parameters:
monitoredEvent
- the monitored eventchannels
- the channels
-
-
Method Details