The Diffusion Publisher API is deprecated and will be removed in a future release.
@Deprecated public interface ClientConnection
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Deprecated.
Close the client connection.
|
String |
getClientID()
Deprecated.
Returns the client ID.
|
ConnectionType |
getConnectionType()
Deprecated.
Returns the connection type.
|
long |
getLastInteraction()
Deprecated.
Returns time of last interaction with the server.
|
int |
getProtocolVersion()
Deprecated.
Returns the Diffusion protocol version used to communicate with the
client.
|
boolean |
isConnected()
Deprecated.
Returns true when the client is connected.
|
boolean |
isSecure()
Deprecated.
Indicates whether connected over a secure connection (e.g.
|
boolean |
ping()
Deprecated.
This sends a
ClientPingMessage to the client. |
String getClientID()
ConnectionType getConnectionType()
boolean isConnected()
boolean isSecure()
int getProtocolVersion()
boolean ping()
ClientPingMessage
to the client.
A ping message is used to test the client connection and time the round
trip time for the message to reach the client and be sent back. The
response will be returned via the
ClientPingResponseListener
interface.
long getLastInteraction()
This returns the time (in milliseconds since the epoch) of the last interaction (whether send or receive) with the server.
boolean close()
Once a connection is closed it may no longer be used.
Copyright © 2020 Push Technology Ltd. All Rights Reserved.