public final class EventStrategy extends AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy> implements TraversalStrategy.DecorationStrategy
Mutating
steps are encountered and successfully executed.
Note that this implementation requires a Graph
on the Traversal
instance. If that is not present
an IllegalStateException
will be thrown. Finally, this strategy is meant for use on the JVM only and has
no analogous implementation in other Gremlin Language Variants.Modifier and Type | Class and Description |
---|---|
static class |
EventStrategy.Builder |
static class |
EventStrategy.DefaultEventQueue
Immediately notifies all listeners as events arrive.
|
static interface |
EventStrategy.Detacher
A common interface for detachment.
|
static class |
EventStrategy.Detachment
Options for detaching elements from the graph during eventing.
|
static interface |
EventStrategy.EventQueue
Gathers messages from callbacks and fires them to listeners.
|
class |
EventStrategy.EventStrategyCallback |
static class |
EventStrategy.TransactionalEventQueue
Stores events in a queue that builds up until the transaction is committed which then fires them in the order
they were received.
|
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
STRATEGY
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
static EventStrategy.Builder |
build() |
<R> R |
detach(R attached)
Applies the appropriate detach operation to elements that will be raised in mutation events.
|
EventStrategy.Detachment |
getDetachment() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPost, applyPrior, getConfiguration
public EventStrategy.Detachment getDetachment()
public <R> R detach(R attached)
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.DecorationStrategy>
public static EventStrategy.Builder build()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.