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,
NonBlockingIOThread in,
NonBlockingIOThread out,
int connectionId,
SocketChannelWrapper socketChannelWrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(Throwable t) |
void |
decrementPendingPacketCount() |
boolean |
equals(Object o) |
ClientConnectionManager |
getConnectionManager() |
Address |
getEndPoint() |
InetAddress |
getInetAddress() |
InetSocketAddress |
getLocalSocketAddress() |
int |
getPendingPacketCount() |
int |
getPort() |
ClientReadHandler |
getReadHandler() |
Address |
getRemoteEndpoint() |
InetSocketAddress |
getRemoteSocketAddress() |
SerializationService |
getSerializationService() |
SocketChannelWrapper |
getSocketChannelWrapper() |
ConnectionType |
getType() |
int |
hashCode() |
void |
incrementPendingPacketCount() |
void |
init() |
protected void |
innerClose() |
boolean |
isAlive() |
boolean |
isAuthenticatedAsOwner() |
boolean |
isClient() |
boolean |
isHeartBeating() |
long |
lastReadTimeMillis() |
long |
lastWriteTimeMillis() |
void |
setIsAuthenticatedAsOwner() |
void |
setRemoteEndpoint(Address remoteEndpoint) |
void |
setType(ConnectionType type) |
String |
toString() |
boolean |
write(OutboundFrame frame) |
public ClientConnection(HazelcastClientInstanceImpl client, NonBlockingIOThread in, NonBlockingIOThread out, int connectionId, SocketChannelWrapper socketChannelWrapper) throws IOException
IOExceptionpublic ClientConnection(HazelcastClientInstanceImpl client, int connectionId) throws IOException
IOExceptionpublic void incrementPendingPacketCount()
public void decrementPendingPacketCount()
public int getPendingPacketCount()
public SerializationService getSerializationService()
public boolean write(OutboundFrame frame)
write in interface Connectionpublic void init()
throws IOException
IOExceptionpublic Address getEndPoint()
getEndPoint in interface Connectionpublic boolean isAlive()
isAlive in interface Connectionpublic long lastReadTimeMillis()
lastReadTimeMillis in interface Connectionpublic long lastWriteTimeMillis()
lastWriteTimeMillis in interface Connectionpublic void close()
close in interface Connectionclose in interface Closeableclose in interface AutoCloseablepublic void setType(ConnectionType type)
setType in interface Connectionpublic 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()
public boolean isAuthenticatedAsOwner()
public void setIsAuthenticatedAsOwner()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.