Class EventStrategy.DefaultEventQueue
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.EventStrategy.DefaultEventQueue
-
- All Implemented Interfaces:
EventStrategy.EventQueue
- Enclosing class:
- EventStrategy
public static class EventStrategy.DefaultEventQueue extends Object implements EventStrategy.EventQueue
Immediately notifies all listeners as events arrive.
-
-
Constructor Summary
Constructors Constructor Description DefaultEventQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEvent(Event evt)
Add an event to the event queue.void
setListeners(List<MutationListener> listeners)
Provide listeners to the queue that were given to theEventStrategy
on construction.
-
-
-
Method Detail
-
setListeners
public void setListeners(List<MutationListener> listeners)
Description copied from interface:EventStrategy.EventQueue
Provide listeners to the queue that were given to theEventStrategy
on construction.- Specified by:
setListeners
in interfaceEventStrategy.EventQueue
-
addEvent
public void addEvent(Event evt)
Description copied from interface:EventStrategy.EventQueue
Add an event to the event queue.- Specified by:
addEvent
in interfaceEventStrategy.EventQueue
-
-