|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpy4j.DefaultGatewayServerListener
public class DefaultGatewayServerListener
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 Summary | |
---|---|
DefaultGatewayServerListener()
|
Method Summary | |
---|---|
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(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultGatewayServerListener()
Method Detail |
---|
public void connectionError(Exception e)
connectionError
in interface GatewayServerListener
public void connectionStarted(GatewayConnection gatewayConnection)
connectionStarted
in interface GatewayServerListener
public void connectionStopped(GatewayConnection gatewayConnection)
connectionStopped
in interface GatewayServerListener
public void serverError(Exception e)
GatewayServerListener
This 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 GatewayServerListener
public void serverPostShutdown()
GatewayServerListener
This 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 GatewayServerListener
public void serverPreShutdown()
serverPreShutdown
in interface GatewayServerListener
public void serverStarted()
serverStarted
in interface GatewayServerListener
public void serverStopped()
GatewayServerListener
This 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |