|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.test.ServerRunner
public class ServerRunner
ServerRunner Executes server component in it's own thread as long as necessary and handles stopping it when necessary.
Constructor Summary | |
---|---|
ServerRunner(Callback handler)
|
Method Summary | |
---|---|
void |
run()
Run event loop continuously until stop() is called. |
static ServerRunner |
start(Callback handler)
Initialize ServerRunner and thread for it. |
void |
stop()
Stop running event loop. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerRunner(Callback handler)
Method Detail |
---|
public static ServerRunner start(Callback handler)
public void run()
run
in interface java.lang.Runnable
public void stop() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |