Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hammurapi.eventbus
Interface EventBus.Handle<E,P extends Comparable<P>,C>

Show UML class diagram

All Known Subinterfaces:
  AbstractEventBus.Handle<E,P,C,K>

Enclosing interface:
  EventBus<E,P extends Comparable<P>,C,K,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>

    public static interface EventBus.Handle<E,P extends Comparable<P>,C>

The primary purpose of Handle in the event bus is to be a synchronization object. Its join() method blocks until all dispatching/inference associated with the posting of given event is completed.

Method Summary
`Collection<Derivation<E,P,C>>` | `getDerivations()`
`E` | `getEvent()`
`boolean` | `isDerivedFrom(E event)`
`boolean` | `isValid()`
`void` | `remove()` Removes event from the bus.
`void` | `update()` Informs the bus that the event was updated.

Method Detail

### getEvent

    E getEvent()

### getDerivations

    Collection<Derivation<E,P,C>> getDerivations()

  Returns:
    Derivations of this event.

### isValid

    boolean isValid()

  Returns:
    True if event is not consumed.

### isDerivedFrom

    boolean isDerivedFrom(E event)

### remove

    void remove()

  Removes event from the bus.

### update

    void update()

  Informs the bus that the event was updated.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD