public class ConnectionReference<T,L> extends Object implements IReplicationMonitoredConnection
| Constructor and Description |
|---|
ConnectionReference(AbstractProxyBasedReplicationMonitoredConnection<T,L> connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> T |
dispatch(AbstractReplicationPacket<T> packet) |
<T> AsyncFuture<T> |
dispatchAsync(AbstractReplicationPacket<T> packet) |
String |
dumpState() |
protected void |
finalize() |
Object |
getClosestEndpointAddress() |
ConnectionEndpointDetails |
getClosestEndpointDetails() |
PlatformLogicalVersion |
getClosestEndpointLogicalVersion() |
Uuid |
getClosestEndpointUniqueId() |
Object |
getConnectionUrl() |
String |
getFinalEndpointLookupName() |
long |
getGeneratedTraffic() |
Exception |
getLastDisconnectionReason() |
long |
getReceivedTraffic() |
ConnectionState |
getState() |
Long |
getTimeOfDisconnection() |
AbstractProxyBasedReplicationMonitoredConnection<T,L> |
getUnderlyingConnection() |
void |
setConnectionStateListener(IConnectionStateListener listener) |
void |
setConnectivityCheckListener(IConnectivityCheckListener listener) |
boolean |
supportsConnectivityCheckEvents() |
public ConnectionReference(AbstractProxyBasedReplicationMonitoredConnection<T,L> connection)
public void close()
close in interface IReplicationConnectionpublic <T> T dispatch(AbstractReplicationPacket<T> packet) throws RemoteException
dispatch in interface IReplicationConnectionRemoteExceptionpublic <T> AsyncFuture<T> dispatchAsync(AbstractReplicationPacket<T> packet) throws RemoteException
dispatchAsync in interface IReplicationConnectionRemoteExceptionpublic ConnectionState getState()
getState in interface IReplicationMonitoredConnectionpublic void setConnectionStateListener(IConnectionStateListener listener)
setConnectionStateListener in interface IReplicationMonitoredConnectionpublic void setConnectivityCheckListener(IConnectivityCheckListener listener)
setConnectivityCheckListener in interface IReplicationMonitoredConnectionpublic AbstractProxyBasedReplicationMonitoredConnection<T,L> getUnderlyingConnection()
public Exception getLastDisconnectionReason()
getLastDisconnectionReason in interface IReplicationMonitoredConnectionpublic String getFinalEndpointLookupName()
getFinalEndpointLookupName in interface IReplicationConnectionpublic Uuid getClosestEndpointUniqueId()
getClosestEndpointUniqueId in interface IReplicationConnectionpublic Object getClosestEndpointAddress()
getClosestEndpointAddress in interface IReplicationConnectionpublic ConnectionEndpointDetails getClosestEndpointDetails()
getClosestEndpointDetails in interface IReplicationConnectionprotected void finalize()
throws Throwable
public Object getConnectionUrl()
getConnectionUrl in interface IReplicationConnectionpublic long getGeneratedTraffic()
getGeneratedTraffic in interface IReplicationConnectionpublic long getReceivedTraffic()
getReceivedTraffic in interface IReplicationConnectionpublic PlatformLogicalVersion getClosestEndpointLogicalVersion()
getClosestEndpointLogicalVersion in interface IReplicationConnectionpublic boolean supportsConnectivityCheckEvents()
supportsConnectivityCheckEvents in interface IReplicationMonitoredConnectionIReplicationMonitoredConnection.setConnectivityCheckListener(IConnectivityCheckListener) listener is
supported.public Long getTimeOfDisconnection()
getTimeOfDisconnection in interface IReplicationMonitoredConnectionpublic String dumpState()
dumpState in interface IReplicationMonitoredConnectionCopyright © GigaSpaces.