T - subscriber type: ExecutionEventListener or ExecutionEventNodeFactory.public class EventBinding<T> extends Object
The subscription remains active until:
| Modifier and Type | Method and Description |
|---|---|
void |
attach()
Attach this binding to receive the associated notifications by the
subscriber. |
void |
dispose()
Cancels the subscription permanently.
|
T |
getElement() |
boolean |
isAttached()
Test if this binding is attached.
|
boolean |
isDisposed() |
boolean |
tryAttach()
Try to attach this binding, if not disposed or attached already.
|
public T getElement()
ExecutionEventNodeFactory or
ExecutionEventListener.public final boolean isAttached()
public final void attach()
subscriber. When notification about existing sources were requested in binding creation,
notifications will be performed in this call.
The binding is attached automatically, when one of the Instrumenter attach methods
were used. Use this for bindings created by Instrumenter create methods only.
IllegalStateException - when the binding is attached already, or
when it was disposed.public final boolean tryAttach()
EventBinding.attach(), but returns false instead of throwing an exception when not
successful.
The binding is attached automatically, when one of the Instrumenter attach methods
were used. Use this for bindings created by Instrumenter create methods only.
true when the binding was attached successfully, false when
disposed or attached already.public boolean isDisposed()
public void dispose()