Class ConnectionReference<T,L>
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.router.spacefinder.ConnectionReference<T,L>
- All Implemented Interfaces:
IReplicationConnection,IReplicationMonitoredConnection
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> Tdispatch(AbstractReplicationPacket<T> packet) <T> AsyncFuture<T>dispatchAsync(AbstractReplicationPacket<T> packet) protected voidfinalize()longlonggetState()voidvoidboolean
-
Constructor Details
-
ConnectionReference
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceIReplicationConnection
-
dispatch
- Specified by:
dispatchin interfaceIReplicationConnection- Throws:
RemoteException
-
dispatchAsync
- Specified by:
dispatchAsyncin interfaceIReplicationConnection- Throws:
RemoteException
-
getState
- Specified by:
getStatein interfaceIReplicationMonitoredConnection
-
setConnectionStateListener
- Specified by:
setConnectionStateListenerin interfaceIReplicationMonitoredConnection
-
setConnectivityCheckListener
- Specified by:
setConnectivityCheckListenerin interfaceIReplicationMonitoredConnection
-
getUnderlyingConnection
-
getLastDisconnectionReason
- Specified by:
getLastDisconnectionReasonin interfaceIReplicationMonitoredConnection- Returns:
- the reason for the last disconnection if any disconnection occurred. The reason does not reset when a connection is reestablished.
-
getFinalEndpointLookupName
- Specified by:
getFinalEndpointLookupNamein interfaceIReplicationConnection- Returns:
- the final endpoint associated to this connection lookup name
-
getClosestEndpointUniqueId
- Specified by:
getClosestEndpointUniqueIdin interfaceIReplicationConnection- Returns:
- the direct endpoint associated to this connection id, if delegators are used this will point to the directly connected delegator unique id and not the final destination unique id
-
getClosestEndpointAddress
- Specified by:
getClosestEndpointAddressin interfaceIReplicationConnection- Returns:
- the direct endpoint associated to this connection address, if delegators are used this will point to the directly connected delegator address and not the final destination address
-
getClosestEndpointDetails
- Specified by:
getClosestEndpointDetailsin interfaceIReplicationConnection- Returns:
- the direct endpoint associated to this connection details
-
finalize
-
getConnectionUrl
- Specified by:
getConnectionUrlin interfaceIReplicationConnection
-
getGeneratedTraffic
public long getGeneratedTraffic()- Specified by:
getGeneratedTrafficin interfaceIReplicationConnection
-
getReceivedTraffic
public long getReceivedTraffic()- Specified by:
getReceivedTrafficin interfaceIReplicationConnection
-
getClosestEndpointLogicalVersion
- Specified by:
getClosestEndpointLogicalVersionin interfaceIReplicationConnection- Returns:
- the direct endpoint associated to this connection logical version, if delegators are used this will point to the directly connected delegator logical version and not the final destination version
-
supportsConnectivityCheckEvents
public boolean supportsConnectivityCheckEvents()- Specified by:
supportsConnectivityCheckEventsin interfaceIReplicationMonitoredConnection- Returns:
- whether
IReplicationMonitoredConnection.setConnectivityCheckListener(IConnectivityCheckListener)listener is supported.
-
getTimeOfDisconnection
- Specified by:
getTimeOfDisconnectionin interfaceIReplicationMonitoredConnection
-
dumpState
- Specified by:
dumpStatein interfaceIReplicationMonitoredConnection
-