public abstract class AbstractProxyBasedReplicationMonitoredConnection<T,L> extends Object implements IExceptionHandler
Modifier and Type | Class and Description |
---|---|
static class |
AbstractProxyBasedReplicationMonitoredConnection.StateChangedEvent |
Constructor and Description |
---|
AbstractProxyBasedReplicationMonitoredConnection(AbstractConnectionProxyBasedReplicationRouter<T,L> router,
String targetLookupName,
IReplicationConnectionProxy connectionProxy,
T tag,
String endpointLookupName,
IConnectionMonitor<T,L> monitor,
L url,
ConnectionState state,
Exception disconnectionReason,
Uuid proxyId,
IAsyncContextProvider asyncContextProvider) |
public AbstractProxyBasedReplicationMonitoredConnection(AbstractConnectionProxyBasedReplicationRouter<T,L> router, String targetLookupName, IReplicationConnectionProxy connectionProxy, T tag, String endpointLookupName, IConnectionMonitor<T,L> monitor, L url, ConnectionState state, Exception disconnectionReason, Uuid proxyId, IAsyncContextProvider asyncContextProvider)
public AbstractConnectionProxyBasedReplicationRouter<T,L> getRouter()
public boolean isConnectionClosed()
protected abstract void onClose()
public <TR> TR dispatch(AbstractReplicationPacket<TR> packet) throws RemoteException
RemoteException
public <TR> AsyncFuture<TR> dispatchAsync(AbstractReplicationPacket<TR> packet) throws RemoteException
RemoteException
public Throwable handleException(Throwable ex, IFuture future)
handleException
in interface IExceptionHandler
public void setConnected(IReplicationConnectionProxy proxy, T tag, String endPointLookupName, Uuid proxyId)
public void setDisconnected(Exception reason)
public ConnectionState getState()
public L getFinderURL()
public IReplicationConnectionProxy getConnectionProxy()
public String getTargetLookupName()
public String getFinalEndpointLookupName()
public void addStateListener(IConnectionStateListener listener)
public void removeStateListener(IConnectionStateListener listener)
public void removeConnectivityCheckListener(IConnectivityCheckListener connectivityCheckListener)
public void addConnectivityCheckListener(IConnectivityCheckListener connectivityCheckListener)
public void removeReference()
public void addReference()
public Exception getLastDisconnectionReason()
public void setLastDisconnectionReason(Exception exception)
public T getTag()
public ServiceID getServiceId()
public Uuid getProxyId()
public Object getStateLock()
public Object getConnectionUrl()
public String dumpState()
public long getGeneratedTraffic()
public long getReceivedTraffic()
public Object getClosestEndpointAddress()
public PlatformLogicalVersion getClosestEndpointLogicalVersion()
public ConnectionEndpointDetails getClosestEndpointDetails()
public void triggerSuccessfulConnectivityCheckEvent()
public abstract boolean supportsConnectivityCheckEvents()
public Long getTimeOfDisconnection()
Copyright © GigaSpaces.