|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.remote.corba.CorbaServerEventQueue
This is thread-safe queue for UpdateEvents. Events can be accumulated in the queue and then retrieved in one chunk. Mainly used on the server side. If TreeClient != null, notifies treeClient about events.
Field Summary | |
protected EventStruct[] |
emptyEvents
|
protected boolean |
keepRunning
|
protected List |
queue
|
protected TreeClient |
treeClient
|
Constructor Summary | |
CorbaServerEventQueue()
Creates a new instance of UpdatableQueue |
|
CorbaServerEventQueue(TreeClient treeClient)
|
Method Summary | |
protected void |
addToQueue(EventStruct event)
This method adds event to the queue and does some cleanup, like remove multiple update events for the same path, etc. |
void |
close()
Once the ServerQueue is closed, it can not be restarted again. |
EventStruct[] |
getEvents()
Returns the array of events that are currently in the queue. |
void |
run()
In Duplex mode sends updates to TreeClient |
void |
schedule(EventStruct event)
Add events to the queue. |
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected List queue
protected boolean keepRunning
protected EventStruct[] emptyEvents
protected TreeClient treeClient
Constructor Detail |
public CorbaServerEventQueue()
public CorbaServerEventQueue(TreeClient treeClient)
Method Detail |
public void close()
public int size()
public void schedule(EventStruct event)
public EventStruct[] getEvents()
protected void addToQueue(EventStruct event)
public void run()
run
in interface Runnable
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |