public abstract class AbstractEventGate<E extends GenericEvent>
extends java.lang.Object
Constructor and Description |
---|
AbstractEventGate() |
Modifier and Type | Method and Description |
---|---|
E |
awaitTimingOut(long time,
java.util.concurrent.TimeUnit unit) |
protected void |
deregister()
This method is called when isSingleUseOnly flag is set.
|
protected void |
received(E e) |
void |
setSingleUseOnly(boolean isSingleUseOnly)
Tells whether this gate can be reused or not.
|
protected E extends GenericEvent lastEvent
public E awaitTimingOut(long time, java.util.concurrent.TimeUnit unit) throws java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutException
protected void received(E e)
protected void deregister()
public void setSingleUseOnly(boolean isSingleUseOnly)
deregister()
is called after receiving the
expected event and the gate remains open forever.Copyright © 2014 EsprIT-Systems. All Rights Reserved.