public abstract class BaseClientPeer extends ConnectionResource
Constructor and Description |
---|
BaseClientPeer(ProtocolAdapter protocolAdapter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
String |
getConnectionURL()
Returns the connection URL associated with this peer.
|
int |
getConnectRetries()
Returns the number of connection retries associated with this peer.
|
long |
getObjectId() |
ProtocolAdapter |
getProtocolAdapter()
Returns the protocol adapter that created this peer.
|
boolean |
isConnected()
Checks if the current peer is in 'connected' state.
|
void |
setConnected(boolean connected) |
void |
setConnectionURL(String connectionURL) |
void |
setConnectRetries(int connectRetries)
Sets the number of connection retries associated with this peer.
|
void |
setObjectId(long objectId) |
clear, close, disable, getGeneratedTraffic, getMonitoringModule, getReceivedTraffic, isClosed
acquire, isAcquired, isFromPool, release, setAcquired, setFromPool
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, init, invoke, sendKeepAlive
disconnect
public BaseClientPeer(ProtocolAdapter protocolAdapter)
protocolAdapter
- Client's peer adaptor.public boolean isConnected()
Peer
true
if connected, false
otherwise.public void setConnected(boolean connected)
public ProtocolAdapter getProtocolAdapter()
Peer
public String getConnectionURL()
ClientPeer
public void setConnectionURL(String connectionURL) throws MalformedURLException, RemoteException
MalformedURLException
RemoteException
public int getConnectRetries()
ClientPeer
public void setConnectRetries(int connectRetries)
ClientPeer
public long getObjectId()
public void setObjectId(long objectId)
Copyright © GigaSpaces.