public class SessionHandlerList
extends java.lang.Object
Constructor and Description |
---|
SessionHandlerList()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(SessionHandlerInterface handler)
Add a handler to the list
|
SessionHandlerInterface |
findHandler(java.lang.String name)
Find the required handler by name
|
SessionHandlerInterface |
getHandlerAt(int idx)
Return the specified handler
|
int |
numberOfHandlers()
Return the number of handlers in the list
|
SessionHandlerInterface |
remoteHandler(int idx)
Remove a handler from the list
|
SessionHandlerInterface |
remoteHandler(java.lang.String name)
Remove a handler from the list
|
void |
removeAllHandlers()
Remove all handlers from the list
|
void |
waitWhileEmpty()
Wait for a session handler to be added to the list
|
public final void addHandler(SessionHandlerInterface handler)
handler
- SessionHandlerInterfacepublic final int numberOfHandlers()
public final SessionHandlerInterface getHandlerAt(int idx)
idx
- intpublic final SessionHandlerInterface findHandler(java.lang.String name)
name
- Stringpublic final SessionHandlerInterface remoteHandler(int idx)
idx
- intpublic final SessionHandlerInterface remoteHandler(java.lang.String name)
name
- Stringpublic final void removeAllHandlers()
public final void waitWhileEmpty() throws java.lang.InterruptedException
java.lang.InterruptedException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.