public class ClientConnection extends Object implements Connection, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected int |
connectionId |
| Constructor and Description |
|---|
ClientConnection(HazelcastClientInstanceImpl client,
int connectionId) |
ClientConnection(HazelcastClientInstanceImpl client,
IOSelector in,
IOSelector out,
int connectionId,
SocketChannelWrapper socketChannelWrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(Throwable t) |
void |
decrementPacketCount() |
boolean |
equals(Object o) |
ClientConnectionManager |
getConnectionManager() |
Address |
getEndPoint() |
InetAddress |
getInetAddress() |
InetSocketAddress |
getLocalSocketAddress() |
int |
getPacketCount() |
int |
getPort() |
ClientReadHandler |
getReadHandler() |
Address |
getRemoteEndpoint() |
InetSocketAddress |
getRemoteSocketAddress() |
SerializationService |
getSerializationService() |
SocketChannelWrapper |
getSocketChannelWrapper() |
ConnectionType |
getType() |
int |
hashCode() |
void |
incrementPacketCount() |
void |
init() |
protected void |
innerClose() |
boolean |
isAlive() |
boolean |
isClient() |
boolean |
isHeartBeating() |
long |
lastReadTime() |
long |
lastWriteTime() |
void |
setRemoteEndpoint(Address remoteEndpoint) |
String |
toString() |
boolean |
write(SocketWritable packet) |
public ClientConnection(HazelcastClientInstanceImpl client, IOSelector in, IOSelector out, int connectionId, SocketChannelWrapper socketChannelWrapper) throws IOException
IOExceptionpublic ClientConnection(HazelcastClientInstanceImpl client, int connectionId) throws IOException
IOExceptionpublic void incrementPacketCount()
public void decrementPacketCount()
public int getPacketCount()
public SerializationService getSerializationService()
public boolean write(SocketWritable packet)
write in interface Connectionpublic void init()
throws IOException
IOExceptionpublic Address getEndPoint()
getEndPoint in interface Connectionpublic boolean isAlive()
isAlive in interface Connectionpublic long lastReadTime()
lastReadTime in interface Connectionpublic long lastWriteTime()
lastWriteTime in interface Connectionpublic void close()
close in interface Connectionclose in interface Closeableclose in interface AutoCloseablepublic ConnectionType getType()
getType in interface Connectionpublic boolean isClient()
isClient in interface Connectionpublic InetAddress getInetAddress()
getInetAddress in interface Connectionpublic InetSocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in interface Connectionpublic int getPort()
getPort in interface Connectionpublic SocketChannelWrapper getSocketChannelWrapper()
public ClientConnectionManager getConnectionManager()
public ClientReadHandler getReadHandler()
public void setRemoteEndpoint(Address remoteEndpoint)
public Address getRemoteEndpoint()
public InetSocketAddress getLocalSocketAddress()
protected void innerClose()
throws IOException
IOExceptionpublic void close(Throwable t)
public boolean isHeartBeating()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.