public class ClientConnection extends Object implements Connection
Connection
.
ClientConnection is a connection between a Hazelcast Client and a Hazelcast Member.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) |
public ClientConnection(HazelcastClientInstanceImpl client, NonBlockingIOThread in, NonBlockingIOThread out, int connectionId, SocketChannelWrapper socketChannelWrapper) throws IOException
IOException
public ClientConnection(HazelcastClientInstanceImpl client, int connectionId) throws IOException
IOException
public void incrementPendingPacketCount()
public void decrementPendingPacketCount()
public int getPendingPacketCount()
public boolean write(OutboundFrame frame)
write
in interface Connection
public void init() throws IOException
IOException
public Address getEndPoint()
getEndPoint
in interface Connection
public boolean isAlive()
isAlive
in interface Connection
public long lastReadTimeMillis()
lastReadTimeMillis
in interface Connection
public long lastWriteTimeMillis()
lastWriteTimeMillis
in interface Connection
public void setType(ConnectionType type)
setType
in interface Connection
public ConnectionType getType()
getType
in interface Connection
public boolean isClient()
isClient
in interface Connection
public InetAddress getInetAddress()
getInetAddress
in interface Connection
public InetSocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in interface Connection
public int getPort()
getPort
in interface Connection
public SocketChannelWrapper getSocketChannelWrapper()
public ClientConnectionManager getConnectionManager()
public ClientReadHandler getReadHandler()
public void setRemoteEndpoint(Address remoteEndpoint)
public Address getRemoteEndpoint()
public InetSocketAddress getLocalSocketAddress()
public void close(String reason, Throwable cause)
close
in interface Connection
protected void innerClose() throws IOException
IOException
public Throwable getCloseCause()
getCloseCause
in interface Connection
public String getCloseReason()
getCloseReason
in interface Connection
public long getLastHeartbeatMillis()
public boolean isHeartBeating()
public boolean isAuthenticatedAsOwner()
public void setIsAuthenticatedAsOwner()
public long getClosedTime()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.