public final class Connection extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Connection.Type |
Constructor and Description |
---|
Connection(ConnectionManager connectionManager,
InOutSelector inOutSelector,
int connectionId,
SocketChannelWrapper socketChannel) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
close(Throwable t) |
void |
close0() |
boolean |
equals(Object o) |
int |
getConnectionId() |
ConnectionManager |
getConnectionManager() |
Address |
getEndPoint() |
InOutSelector |
getInOutSelector() |
com.hazelcast.nio.ConnectionMonitor |
getMonitor() |
com.hazelcast.nio.ReadHandler |
getReadHandler() |
SocketChannelWrapper |
getSocketChannelWrapper() |
SystemLogService |
getSystemLogService() |
Connection.Type |
getType() |
WriteHandler |
getWriteHandler() |
int |
hashCode() |
boolean |
isClient() |
long |
lastReadTime() |
long |
lastWriteTime() |
boolean |
live() |
Packet |
obtainPacket() |
void |
releasePacket(Packet packet) |
void |
setEndPoint(Address endPoint) |
void |
setMonitor(com.hazelcast.nio.ConnectionMonitor monitor) |
void |
setType(Connection.Type type) |
String |
toString() |
public Connection(ConnectionManager connectionManager, InOutSelector inOutSelector, int connectionId, SocketChannelWrapper socketChannel)
public SystemLogService getSystemLogService()
public Connection.Type getType()
public void releasePacket(Packet packet)
public Packet obtainPacket()
public ConnectionManager getConnectionManager()
public boolean isClient()
public void setType(Connection.Type type)
public SocketChannelWrapper getSocketChannelWrapper()
public com.hazelcast.nio.ReadHandler getReadHandler()
public WriteHandler getWriteHandler()
public InOutSelector getInOutSelector()
public boolean live()
public long lastWriteTime()
public long lastReadTime()
public Address getEndPoint()
public void setEndPoint(Address endPoint)
public void setMonitor(com.hazelcast.nio.ConnectionMonitor monitor)
public com.hazelcast.nio.ConnectionMonitor getMonitor()
public void close0() throws IOException
IOException
public void close()
public void close(Throwable t)
public int getConnectionId()
Copyright © 2013 Hazelcast, Inc.. All rights reserved.