|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerLoadMonitor
Polling or Comet style interactive web applications require something to monitor high levels of server load to ensure that
Method Summary | |
---|---|
long |
getConnectedTime()
What's the longest time that we should wait before asking the client to reconnect? |
int |
getDisconnectedTime()
Controller for poll times. |
void |
shutdown()
Kill all available long-poll requests |
boolean |
supportsStreaming()
If the server is not going to be streaming then we need to tell browsers to just use XHR rather than anything fancier. |
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. |
Method Detail |
---|
boolean supportsStreaming()
int getDisconnectedTime()
TODO: We should probably get rid of this and leave it to PollHandler?
long getConnectedTime()
void threadWaitStarting(WaitController controller)
controller
- An object that we can use to control the waitvoid threadWaitEnding(WaitController controller)
controller
- An object that we can use to control the waitvoid shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |