|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.impl.AbstractServerLoadMonitor
public abstract class AbstractServerLoadMonitor
A base implementation of ServerLoadMonitor
that implements waiting
functionallity, mostly to provide shutdown()
.
Field Summary | |
---|---|
protected java.util.List |
waitControllers
The known wait controllers |
Constructor Summary | |
---|---|
AbstractServerLoadMonitor()
|
Method Summary | |
---|---|
void |
shutdown()
Kill all available long-poll requests |
void |
shutdownRandomWaitControllers(int count)
If there are too many WaitControllers waiting then we can kill one off at random. |
void |
threadWaitEnding(WaitController controller)
A thread has just ended a wait period. |
void |
threadWaitStarting(WaitController controller)
A thread is about to begin a wait period. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.directwebremoting.extend.ServerLoadMonitor |
---|
getConnectedTime, getDisconnectedTime, supportsStreaming |
Field Detail |
---|
protected java.util.List waitControllers
Constructor Detail |
---|
public AbstractServerLoadMonitor()
Method Detail |
---|
public void threadWaitStarting(WaitController controller)
ServerLoadMonitor
threadWaitStarting
in interface ServerLoadMonitor
controller
- An object that we can use to control the waitpublic void threadWaitEnding(WaitController controller)
ServerLoadMonitor
threadWaitEnding
in interface ServerLoadMonitor
controller
- An object that we can use to control the waitpublic void shutdownRandomWaitControllers(int count)
count
- How many WaitController
s do we shutdown?public void shutdown()
ServerLoadMonitor
shutdown
in interface ServerLoadMonitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |