cz.cuni.amis.nb.api.pogamut.base.server
Class ReconnectingServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>
java.lang.Object
cz.cuni.amis.nb.api.pogamut.base.server.ServerDefinition<T>
cz.cuni.amis.nb.api.pogamut.base.server.ReconnectingServerDefinition<T>
- All Implemented Interfaces:
- Serializable
public abstract class ReconnectingServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>
- extends ServerDefinition<T>
States are:
- Connecting
- Connected
- Waiting before another connection attempt
- Author:
- ik
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReconnectingServerDefinition
public ReconnectingServerDefinition()
serverStopped
protected void serverStopped(T server)
- Called when the running server stopped. Can be used for removing listeners etc.
stopServer
public void stopServer()
- Description copied from class:
ServerDefinition
- Stops connection to the server.
- Specified by:
stopServer in class ServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>
startServer
public void startServer()
- Nonblocking implementation.
- Specified by:
startServer in class ServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>
tryToStartServer
protected abstract void tryToStartServer()
throws cz.cuni.amis.utils.exception.PogamutException
- Throws:
cz.cuni.amis.utils.exception.PogamutException
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.