com.hammurapi.eventbus
Interface AbstractEventBus.StoreEntry<E,P extends Comparable<P>,C,K>

Show UML class diagram
Enclosing class:
AbstractEventBus<E,P extends Comparable<P>,C,K,H extends AbstractEventBus.Handle<E,P,C,K>,S extends EventStore<E,P,C,H,S>>

public static interface AbstractEventBus.StoreEntry<E,P extends Comparable<P>,C,K>

Store entry complements store handle to provide functionality of event handle.


Method Summary
 Collection<Derivation<E,P,C>> getDerivations()
           
 K getId()
           
 boolean isDerivedFrom(E event)
           
 void setEvent(E event)
          Sets new event.
 AbstractEventBus.Handle<E,P,C,K> update()
          Invalidates this handle, creates a new handle for updated event, posts updated event to the bus, For internal use, shall not be invoked by client code.
 

Method Detail

getDerivations

Collection<Derivation<E,P,C>> getDerivations()
Returns:
Derivations of this event.

isDerivedFrom

boolean isDerivedFrom(E event)

setEvent

void setEvent(E event)
Sets new event. Invoked by substitute(). For internal use, shall not be invoked by client code.

Parameters:
event -

update

AbstractEventBus.Handle<E,P,C,K> update()
Invalidates this handle, creates a new handle for updated event, posts updated event to the bus, For internal use, shall not be invoked by client code.

Returns:
New handle for updated event.

getId

K getId()
Returns:
Event id.