public class ClientConnection extends Object implements Connection, Closeable
| Constructor and Description |
|---|
ClientConnection(ClientConnectionManager connectionManager,
IOSelector in,
IOSelector out,
int connectionId,
SocketChannelWrapper socketChannelWrapper,
ClientExecutionService executionService,
ClientInvocationServiceImpl invocationService,
SerializationService serializationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(Throwable t) |
void |
decrementPacketCount() |
ClientCallFuture |
deRegisterCallId(int callId) |
ClientCallFuture |
deRegisterEventHandler(int callId) |
boolean |
equals(Object o) |
ClientConnectionManager |
getConnectionManager() |
Address |
getEndPoint() |
EventHandler |
getEventHandler(int callId) |
InetAddress |
getInetAddress() |
InetSocketAddress |
getLocalSocketAddress() |
int |
getPort() |
ClientReadHandler |
getReadHandler() |
Address |
getRemoteEndpoint() |
InetSocketAddress |
getRemoteSocketAddress() |
SerializationService |
getSerializationService() |
SocketChannelWrapper |
getSocketChannelWrapper() |
ConnectionType |
getType() |
int |
hashCode() |
void |
incrementPacketCount() |
void |
init() |
boolean |
isAlive() |
boolean |
isClient() |
boolean |
isHeartBeating() |
long |
lastReadTime() |
long |
lastWriteTime() |
Data |
read() |
void |
registerCallId(ClientCallFuture future) |
void |
setRemoteEndpoint(Address remoteEndpoint) |
String |
toString() |
void |
write(Data data) |
boolean |
write(SocketWritable packet) |
public ClientConnection(ClientConnectionManager connectionManager, IOSelector in, IOSelector out, int connectionId, SocketChannelWrapper socketChannelWrapper, ClientExecutionService executionService, ClientInvocationServiceImpl invocationService, SerializationService serializationService) throws IOException
IOExceptionpublic void incrementPacketCount()
public void decrementPacketCount()
public void registerCallId(ClientCallFuture future)
public ClientCallFuture deRegisterCallId(int callId)
public ClientCallFuture deRegisterEventHandler(int callId)
public EventHandler getEventHandler(int callId)
public SerializationService getSerializationService()
public boolean write(SocketWritable packet)
write in interface Connectionpublic void init()
throws IOException
IOExceptionpublic void write(Data data) throws IOException
IOExceptionpublic Data read() 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()
public void close(Throwable t)
public boolean isHeartBeating()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.