public class ProcessVariableEventDispatcher extends Object implements ProcessVariableEventCallback
| Modifier and Type | Field and Description |
|---|---|
protected ProcessVariableEventCallback[] |
cachedList |
protected ArrayList |
listeners
List of listeners.
|
protected ProcessVariable |
processVariable
PV to dispatch for.
|
| Constructor and Description |
|---|
ProcessVariableEventDispatcher(ProcessVariable processVariable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
canceled()
Notify about asynchronous operation cancellation.
|
ProcessVariable |
getProcessVariable()
Get served PV.
|
void |
postEvent(int select,
DBR event)
Notify about process variable event.
|
void |
registerEventListener(ProcessVariableEventCallback listener)
Register new listener.
|
void |
setProcessVariable(ProcessVariable processVariable)
Set served PV (allow PV to be set later to avoid chicken-egg problem).
|
void |
unregisterEventListener(ProcessVariableEventCallback listener)
Unregister new listener.
|
protected ProcessVariable processVariable
protected ArrayList listeners
protected ProcessVariableEventCallback[] cachedList
public ProcessVariableEventDispatcher(ProcessVariable processVariable)
processVariable - PV to dispatch for, can be null.public ProcessVariable getProcessVariable()
public void setProcessVariable(ProcessVariable processVariable)
processVariable - the processVariable to setpublic void postEvent(int select,
DBR event)
ProcessVariableEventCallbackpostEvent in interface ProcessVariableEventCallbackselect - Monitor.[mask] event type.event - event of type DBR_TIME_ProcessVariable.getType().ProcessVariableEventCallback.postEvent(int, gov.aps.jca.dbr.DBR)public void registerEventListener(ProcessVariableEventCallback listener)
listener - public void unregisterEventListener(ProcessVariableEventCallback listener)
listener - public void canceled()
CompletionCallback.canceled()Copyright © 2004-2020 EPICS. All Rights Reserved.