public interface Connector
Modifier and Type | Method and Description |
---|---|
ArrayList<SessionID> |
getSessions()
Returns the sessions managed by this acceptor.
|
boolean |
isLoggedOn()
Checks the logged on status of the session.
|
void |
start()
Start accepting connections.
|
default void |
stop()
Logout existing sessions, close their connections, and stop accepting new
connections.
|
void |
stop(boolean force)
Stops all sessions, optionally waiting for logout completion.
|
void start() throws ConfigError, RuntimeError
ConfigError
- Problem with acceptor configuration.RuntimeError
- Other unspecified errordefault void stop()
void stop(boolean force)
force
- don't wait for logout before disconnect.boolean isLoggedOn()
Copyright © 2021. All rights reserved.