public abstract class JMapConnection
extends java.lang.Object
| Constructor and Description |
|---|
JMapConnection() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Closes the current connection.
|
abstract byte[] |
executeRequest(byte[] requestBytes)
Blocking method that sends a pre-serialized request (byte array) to JMapServer and
returns the serialized response object (byte array) obtained from JMapServer.
|
abstract JMapResponse |
executeRequest(JMapRequest request)
Blocking method that sends a request to JMapServer and returns the response
object obtained from JMapServer.
|
abstract boolean |
isConnected() |
boolean |
pingServer() |
abstract void |
pushRequest(JMapRequest request)
Non-blocking method that pushes a request in the queue.
|
public abstract JMapResponse executeRequest(JMapRequest request) throws java.io.IOException
request - the request to send to JMapServerjava.io.IOExceptionpublic abstract byte[] executeRequest(byte[] requestBytes)
throws java.io.IOException
requestBytes - the request bytes to send to JMapServerjava.io.IOExceptionpublic abstract void pushRequest(JMapRequest request)
callback method.request - the request to send to JMapServerJMapRequestpublic abstract boolean isConnected()
public boolean pingServer()
public abstract void close()