public class SrvSessionQueue
extends java.lang.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 java.lang.InterruptedException
java.lang.InterruptedException
public final SrvSession removeSessionNoWait()
public final void waitWhileEmpty() throws java.lang.InterruptedException
java.lang.InterruptedException
public final void waitUntilEmpty() throws java.lang.InterruptedException
java.lang.InterruptedException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.