org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration

## Class EventStrategy.Builder

- java.lang.Object
- - org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.EventStrategy.Builder

- Enclosing class:
    EventStrategy

      public static final class EventStrategy.Builder
      extends Object

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `EventStrategy.Builder` | `addListener(MutationListener listener)`
    `EventStrategy` | `create()`
    `EventStrategy.Builder` | `detach(Class<?> factoryClass)` Configures the method of detachment for element provided in mutation callback events.
    `EventStrategy.Builder` | `eventQueue(EventStrategy.EventQueue eventQueue)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### addListener

          public EventStrategy.Builder addListener(MutationListener listener)

    - #### eventQueue

          public EventStrategy.Builder eventQueue(EventStrategy.EventQueue eventQueue)

    - #### detach

          public EventStrategy.Builder detach(Class<?> factoryClass)

      Configures the method of detachment for element provided in mutation callback events. If configured with `null` for no detachment with a transactional graph, be aware that accessing the evented elements after `commit()` will likely open new transactions.
      Parameters:
        `factoryClass` - must be either `null` (for no detachment), `ReferenceFactory` for elements with no properties or `DetachedFactory` for elements with properties.

    - #### create

          public EventStrategy create()

Copyright © 2013–2018 Apache Software Foundation. All rights reserved.