Class DefaultGatewayServerListener
- All Implemented Interfaces:
GatewayServerListener
- Direct Known Subclasses:
GatewayServer
This class implements a default GatewayServerListener
. All operations do nothing by default. Clients can
extend this class to only override the methods they need.
- Author:
- Barthelemy Dagenais
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
connectionStarted
(Py4JServerConnection gatewayConnection) void
connectionStopped
(Py4JServerConnection gatewayConnection) void
This method may be called concurrently with serverPostShutdown().void
This method may be called concurrently with serverStopped() and serverError().void
void
void
This method may be called concurrently with serverPostShutdown().
-
Constructor Details
-
DefaultGatewayServerListener
public DefaultGatewayServerListener()
-
-
Method Details
-
connectionError
- Specified by:
connectionError
in interfaceGatewayServerListener
-
connectionStarted
- Specified by:
connectionStarted
in interfaceGatewayServerListener
-
connectionStopped
- Specified by:
connectionStopped
in interfaceGatewayServerListener
-
serverError
Description copied from interface: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.
- Specified by:
serverError
in interfaceGatewayServerListener
-
serverPostShutdown
public void serverPostShutdown()Description copied from interface: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.
- Specified by:
serverPostShutdown
in interfaceGatewayServerListener
-
serverPreShutdown
public void serverPreShutdown()- Specified by:
serverPreShutdown
in interfaceGatewayServerListener
-
serverStarted
public void serverStarted()- Specified by:
serverStarted
in interfaceGatewayServerListener
-
serverStopped
public void serverStopped()Description copied from interface: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.
- Specified by:
serverStopped
in interfaceGatewayServerListener
-