Class EventStrategy
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy>
-
- org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.EventStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<Class<? extends TraversalStrategy>>,TraversalStrategy<TraversalStrategy.DecorationStrategy>,TraversalStrategy.DecorationStrategy
public final class EventStrategy extends AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy> implements TraversalStrategy.DecorationStrategy
A strategy that raises events whenMutatingsteps are encountered and successfully executed. Note that this implementation requires aGraphon theTraversalinstance. If that is not present anIllegalStateExceptionwill be thrown. Finally, this strategy is meant for use on the JVM only and has no analogous implementation in other Gremlin Language Variants.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventStrategy.Builderstatic classEventStrategy.DefaultEventQueueImmediately notifies all listeners as events arrive.static interfaceEventStrategy.DetacherA common interface for detachment.static classEventStrategy.DetachmentOptions for detaching elements from the graph during eventing.static interfaceEventStrategy.EventQueueGathers messages from callbacks and fires them to listeners.classEventStrategy.EventStrategyCallbackstatic classEventStrategy.TransactionalEventQueueStores events in a queue that builds up until the transaction is committed which then fires them in the order they were received.-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
-
-
Field Summary
-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy
STRATEGY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Traversal.Admin<?,?> traversal)static EventStrategy.Builderbuild()<R> Rdetach(R attached)Applies the appropriate detach operation to elements that will be raised in mutation events.EventStrategy.DetachmentgetDetachment()-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy
applyPost, applyPrior, getConfiguration
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy.DecorationStrategy
compareTo, getTraversalCategory
-
-
-
-
Method Detail
-
getDetachment
public EventStrategy.Detachment getDetachment()
-
detach
public <R> R detach(R attached)
Applies the appropriate detach operation to elements that will be raised in mutation events.
-
apply
public void apply(Traversal.Admin<?,?> traversal)
- Specified by:
applyin interfaceTraversalStrategy<TraversalStrategy.DecorationStrategy>
-
build
public static EventStrategy.Builder build()
-
-