public class DefaultGatewayServerListener extends Object implements GatewayServerListener
This class implements a default GatewayServerListener. All operations do nothing by default. Clients can
extend this class to only override the methods they need.
| Constructor and Description |
|---|
DefaultGatewayServerListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionError(Exception e) |
void |
connectionStarted(GatewayConnection gatewayConnection) |
void |
connectionStopped(GatewayConnection gatewayConnection) |
void |
serverError(Exception e)
This method may be called concurrently with serverPostShutdown().
|
void |
serverPostShutdown()
This method may be called concurrently with serverStopped() and
serverError().
|
void |
serverPreShutdown() |
void |
serverStarted() |
void |
serverStopped()
This method may be called concurrently with serverPostShutdown().
|
public void connectionError(Exception e)
connectionError in interface GatewayServerListenerpublic void connectionStarted(GatewayConnection gatewayConnection)
connectionStarted in interface GatewayServerListenerpublic void connectionStopped(GatewayConnection gatewayConnection)
connectionStopped in interface GatewayServerListenerpublic void serverError(Exception e)
GatewayServerListenerThis method may be called concurrently with serverPostShutdown().
Typically a one thread calls shutdown() and then, the thread running the GatewayServer breaks from the connection accept loop.
serverError in interface GatewayServerListenerpublic void serverPostShutdown()
GatewayServerListenerThis method may be called concurrently with serverStopped() and serverError().
Typically a one thread calls shutdown() and then, the thread running the GatewayServer breaks from the connection accept loop.
serverPostShutdown in interface GatewayServerListenerpublic void serverPreShutdown()
serverPreShutdown in interface GatewayServerListenerpublic void serverStarted()
serverStarted in interface GatewayServerListenerpublic void serverStopped()
GatewayServerListenerThis method may be called concurrently with serverPostShutdown().
Typically a one thread calls shutdown() and then, the thread running the GatewayServer breaks from the connection accept loop.
serverStopped in interface GatewayServerListener