Class EventStrategy.TransactionalEventQueue
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.EventStrategy.TransactionalEventQueue
-
- All Implemented Interfaces:
EventStrategy.EventQueue
- Enclosing class:
- EventStrategy
public static class EventStrategy.TransactionalEventQueue extends Object implements EventStrategy.EventQueue
Stores events in a queue that builds up until the transaction is committed which then fires them in the order they were received.
-
-
Constructor Summary
Constructors Constructor Description TransactionalEventQueue(Graph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvent(Event evt)Add an event to the event queue.voidsetListeners(List<MutationListener> listeners)Provide listeners to the queue that were given to theEventStrategyon construction.
-
-
-
Constructor Detail
-
TransactionalEventQueue
public TransactionalEventQueue(Graph graph)
-
-
Method Detail
-
addEvent
public void addEvent(Event evt)
Description copied from interface:EventStrategy.EventQueueAdd an event to the event queue.- Specified by:
addEventin interfaceEventStrategy.EventQueue
-
setListeners
public void setListeners(List<MutationListener> listeners)
Description copied from interface:EventStrategy.EventQueueProvide listeners to the queue that were given to theEventStrategyon construction.- Specified by:
setListenersin interfaceEventStrategy.EventQueue
-
-