|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.bristleback.server.bristle.states.ServerStateListenerChain
public final class ServerStateListenerChain
This class contains queue with server state listeners.
Created on: 2010-10-14 18:18:08
| Constructor Summary | |
|---|---|
ServerStateListenerChain()
Creates a new empty server state listener chain. |
|
| Method Summary | |
|---|---|
void |
addListener(ServerStateListener listener)
Adds a server state listener to the chain. |
void |
cancelChain()
Cancels server state listeners processing, any next remaining listeners won't be processed. |
void |
serverShutdown()
Starts a chain, iterating on all listeners and invokes their onServerStop(this) method. |
void |
serverStart()
Starts a chain, iterating on all listeners and invokes their onServerStart(this) method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerStateListenerChain()
| Method Detail |
|---|
public void serverStart()
onServerStart(this) method.
If any listener calls cancelChain() method on this chain, then processing will be stopped.
public void serverShutdown()
onServerStop(this) method.
If any listener calls cancelChain() method on this chain, then processing will be stopped.
public void cancelChain()
public void addListener(ServerStateListener listener)
listener - server state listener.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||