|
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.basic.ServerQueue
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.
Field Summary | |
protected boolean |
keepRunning
|
protected List |
queue
|
Constructor Summary | |
ServerQueue()
Creates a new instance of UpdatableQueue |
Method Summary | |
protected void |
addToQueue(UpdateEvent 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. |
UpdateEvent[] |
getEvents()
Returns the array of events that are currently in the queue. |
void |
schedule(UpdateEvent 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
Constructor Detail |
public ServerQueue()
Method Detail |
public void close()
public int size()
public void schedule(UpdateEvent event)
public UpdateEvent[] getEvents()
protected void addToQueue(UpdateEvent event)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |