Package | Description |
---|---|
py4j |
Modifier and Type | Class and Description |
---|---|
class |
DefaultGatewayServerListener
This class implements a default
GatewayServerListener . |
class |
GatewayServer
This class enables Python programs to access a Java program.
|
class |
JavaServer
This class extends GatewayServer by implementing a new threading model:
a thread always use the same connection to the other side so callbacks are
executed in the calling thread.
|
class |
PythonClient
Subclass of CallbackClient that implements the new threading model,
ensuring that each thread uses its own connection.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<GatewayServerListener> |
GatewayConnection.listeners |
Modifier and Type | Method and Description |
---|---|
java.util.List<GatewayServerListener> |
Py4JJavaServer.getListeners() |
java.util.List<GatewayServerListener> |
GatewayServer.getListeners() |
Modifier and Type | Method and Description |
---|---|
void |
Py4JJavaServer.addListener(GatewayServerListener listener) |
void |
GatewayServer.addListener(GatewayServerListener listener) |
void |
Py4JJavaServer.removeListener(GatewayServerListener listener) |
void |
GatewayServer.removeListener(GatewayServerListener listener) |
Constructor and Description |
---|
GatewayConnection(Gateway gateway,
java.net.Socket socket,
java.util.List<java.lang.Class<? extends Command>> customCommands,
java.util.List<GatewayServerListener> listeners) |