public class SessionHandlerList extends 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(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(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(String name)
name
- Stringpublic final SessionHandlerInterface remoteHandler(int idx)
idx
- intpublic final SessionHandlerInterface remoteHandler(String name)
name
- Stringpublic final void removeAllHandlers()
public final void waitWhileEmpty() throws InterruptedException
InterruptedException
Copyright © 2005–2018 Alfresco Software. All rights reserved.