Package org.jgrapes.core.internal
Class ActionEvent<T>
java.lang.Object
org.jgrapes.core.internal.EventBase<T>
org.jgrapes.core.Event<T>
org.jgrapes.core.internal.ActionEvent<T>
- All Implemented Interfaces:
Future<T>,Associator,Eligible
A base class for events that perform an action instead of being
handled.
Use to synchronize some action with the other events on
an EventPipeline.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Field Summary
FieldsFields inherited from class org.jgrapes.core.internal.EventBase
completed, completionEvents, invokedFor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedActionEvent(String name) Instantiates a new action event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the class of this event as representation of its kind.booleanisEligibleFor(Object criterion) Returnstrueif thecriterionis of the same class or a base class of this event’s class.toString()Methods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, forChannels, get, get, handled, handlingError, isCancelled, isDone, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieToMethods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGetMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Field Details
-
name
-
-
Constructor Details
-
ActionEvent
Instantiates a new action event.- Parameters:
name- the name
-
-
Method Details
-
isEligibleFor
Description copied from class:EventReturnstrueif thecriterionis of the same class or a base class of this event’s class.- Specified by:
isEligibleForin interfaceEligible- Overrides:
isEligibleForin classEvent<T>- Parameters:
criterion- the criterion- Returns:
- true if this meets the criterion
- See Also:
-
defaultCriterion
Description copied from class:EventReturns the class of this event as representation of its kind.- Specified by:
defaultCriterionin interfaceEligible- Overrides:
defaultCriterionin classEvent<T>- Returns:
- the class of this event
- See Also:
-
toString
-