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 IReplicationConnection
public <T> T dispatch(AbstractReplicationPacket<T> packet) throws RemoteException
dispatch
in interface IReplicationConnection
RemoteException
public <T> AsyncFuture<T> dispatchAsync(AbstractReplicationPacket<T> packet) throws RemoteException
dispatchAsync
in interface IReplicationConnection
RemoteException
public ConnectionState getState()
getState
in interface IReplicationMonitoredConnection
public void setConnectionStateListener(IConnectionStateListener listener)
setConnectionStateListener
in interface IReplicationMonitoredConnection
public void setConnectivityCheckListener(IConnectivityCheckListener listener)
setConnectivityCheckListener
in interface IReplicationMonitoredConnection
public AbstractProxyBasedReplicationMonitoredConnection<T,L> getUnderlyingConnection()
public Exception getLastDisconnectionReason()
getLastDisconnectionReason
in interface IReplicationMonitoredConnection
public String getFinalEndpointLookupName()
getFinalEndpointLookupName
in interface IReplicationConnection
public Uuid getClosestEndpointUniqueId()
getClosestEndpointUniqueId
in interface IReplicationConnection
public Object getClosestEndpointAddress()
getClosestEndpointAddress
in interface IReplicationConnection
public ConnectionEndpointDetails getClosestEndpointDetails()
getClosestEndpointDetails
in interface IReplicationConnection
protected void finalize() throws Throwable
public Object getConnectionUrl()
getConnectionUrl
in interface IReplicationConnection
public long getGeneratedTraffic()
getGeneratedTraffic
in interface IReplicationConnection
public long getReceivedTraffic()
getReceivedTraffic
in interface IReplicationConnection
public PlatformLogicalVersion getClosestEndpointLogicalVersion()
getClosestEndpointLogicalVersion
in interface IReplicationConnection
public boolean supportsConnectivityCheckEvents()
supportsConnectivityCheckEvents
in interface IReplicationMonitoredConnection
IReplicationMonitoredConnection.setConnectivityCheckListener(IConnectivityCheckListener)
listener is
supported.public Long getTimeOfDisconnection()
getTimeOfDisconnection
in interface IReplicationMonitoredConnection
public String dumpState()
dumpState
in interface IReplicationMonitoredConnection
Copyright © GigaSpaces.