Class EventUtil
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.util.event.EventUtil
 
- 
 public final class EventUtil extends Object Logic for registering events with theEventStrategyand the callback registry. Extracting this logic allows providers to reuse these utilities more readily.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static EventStrategyforceGetEventStrategy(Traversal.Admin<Object,Object> traversal)Register a vertex property addition event with the callback registry.static booleanhasAnyCallbacks(CallbackRegistry<? extends Event> callbackRegistry)Register a vertex property addition event with the callback registry.static voidregisterEdgeCreation(CallbackRegistry<Event.EdgeAddedEvent> callbackRegistry, Traversal.Admin<Object,Object> traversal, Edge addedEdge)Register a vertex property addition event with the callback registry.static voidregisterEdgeCreationWithGenericEventRegistry(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Edge addedEdge)Register a vertex property addition event with the callback registry.static voidregisterEdgePropertyChange(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Edge edge, String key, Object value)Register an edge property change event with the callback registry.static voidregisterElementRemoval(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Element elementForRemoval)Register a vertex property addition event with the callback registry.static voidregisterPropertyChange(CallbackRegistry<Event.ElementPropertyChangedEvent> callbackRegistry, EventStrategy es, Element affectedElement, Property removedProperty, Object value, Object[] vertexPropertyKeyValues)Register a vertex property addition event with the callback registry.static voidregisterPropertyRemoval(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Property elementForRemoval)Register a vertex property addition event with the callback registry.static voidregisterVertexCreation(CallbackRegistry<Event.VertexAddedEvent> callbackRegistry, Traversal.Admin<Object,Object> traversal, Vertex addedVertex)Register a vertex property addition event with the callback registry.static voidregisterVertexCreationWithGenericEventRegistry(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Vertex addedVertex)Register a vertex property addition event with the callback registry.static voidregisterVertexPropertyChange(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Vertex vertex, String key, Object value)Register a vertex property change event with the callback registry.
 
- 
- 
- 
Method Detail- 
registerVertexPropertyChangepublic static void registerVertexPropertyChange(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Vertex vertex, String key, Object value) Register a vertex property change event with the callback registry.
 - 
registerEdgePropertyChangepublic static void registerEdgePropertyChange(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Edge edge, String key, Object value) Register an edge property change event with the callback registry.
 - 
registerEdgeCreationpublic static void registerEdgeCreation(CallbackRegistry<Event.EdgeAddedEvent> callbackRegistry, Traversal.Admin<Object,Object> traversal, Edge addedEdge) Register a vertex property addition event with the callback registry.
 - 
registerEdgeCreationWithGenericEventRegistrypublic static void registerEdgeCreationWithGenericEventRegistry(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Edge addedEdge) Register a vertex property addition event with the callback registry.
 - 
registerVertexCreationpublic static void registerVertexCreation(CallbackRegistry<Event.VertexAddedEvent> callbackRegistry, Traversal.Admin<Object,Object> traversal, Vertex addedVertex) Register a vertex property addition event with the callback registry.
 - 
registerVertexCreationWithGenericEventRegistrypublic static void registerVertexCreationWithGenericEventRegistry(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Vertex addedVertex) Register a vertex property addition event with the callback registry.
 - 
registerElementRemovalpublic static void registerElementRemoval(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Element elementForRemoval) Register a vertex property addition event with the callback registry.
 - 
registerPropertyRemovalpublic static void registerPropertyRemoval(CallbackRegistry<Event> callbackRegistry, Traversal.Admin<Object,Object> traversal, Property elementForRemoval) Register a vertex property addition event with the callback registry.
 - 
registerPropertyChangepublic static void registerPropertyChange(CallbackRegistry<Event.ElementPropertyChangedEvent> callbackRegistry, EventStrategy es, Element affectedElement, Property removedProperty, Object value, Object[] vertexPropertyKeyValues) Register a vertex property addition event with the callback registry.
 - 
hasAnyCallbackspublic static boolean hasAnyCallbacks(CallbackRegistry<? extends Event> callbackRegistry) Register a vertex property addition event with the callback registry.
 - 
forceGetEventStrategypublic static EventStrategy forceGetEventStrategy(Traversal.Admin<Object,Object> traversal) Register a vertex property addition event with the callback registry.
 
- 
 
-