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.Modifier and Type | Class and Description |
---|---|
static class |
EventStrategy.Builder |
static class |
EventStrategy.DefaultEventQueue
Immediately notifies all listeners as events arrive.
|
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.
|
<R extends Property> |
empty(Element element,
String key)
For newly created properties that do not yet exist, an empty
Property is required that just contains
a key as a reference. |
Class<?> |
getDetachmentFactory() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPost, applyPrior, getConfiguration
public Class<?> getDetachmentFactory()
public <R> R detach(R attached)
public <R extends Property> R empty(Element element, String key)
Property
is required that just contains
a key as a reference.public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.DecorationStrategy>
public static EventStrategy.Builder build()
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.