public class SrvSessionQueue extends Object
Constructor and Description |
---|
SrvSessionQueue()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addSession(SrvSession sess)
Add a session to the queue
|
int |
numberOfSessions()
Return the number of sessions in the queue
|
SrvSession |
removeSession()
Remove a session from the head of the queue
|
SrvSession |
removeSessionNoWait()
Remove a session from the queue, without waiting if there are no sessions in the queue
|
void |
waitUntilEmpty()
Wait for the session queue to be emptied
|
void |
waitWhileEmpty()
Wait for a session to be added to the queue
|
public final int numberOfSessions()
public final void addSession(SrvSession sess)
sess
- SrvSessionpublic final SrvSession removeSession() throws InterruptedException
InterruptedException
public final SrvSession removeSessionNoWait()
public final void waitWhileEmpty() throws InterruptedException
InterruptedException
public final void waitUntilEmpty() throws InterruptedException
InterruptedException
Copyright © 2005–2018 Alfresco Software. All rights reserved.