public class TcpIpConnectionManager extends Object implements ConnectionManager
| Constructor and Description |
|---|
TcpIpConnectionManager(IOService ioService,
ServerSocketChannel serverSocketChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(ConnectionListener listener) |
boolean |
bind(TcpIpConnection connection,
Address remoteEndPoint,
Address localEndpoint,
boolean replyBack) |
void |
destroyConnection(Connection connection) |
int |
getActiveConnectionCount() |
int |
getAllTextConnections() |
Connection |
getConnection(Address address) |
int |
getConnectionCount() |
int |
getCurrentClientConnections() |
IOService |
getIOHandler() |
MemberSocketInterceptor |
getMemberSocketInterceptor() |
Connection |
getOrConnect(Address address) |
Connection |
getOrConnect(Address address,
boolean silent) |
Map<Address,Connection> |
getReadonlyConnectionMap() |
SerializationContext |
getSerializationContext() |
void |
incrementTextConnections() |
protected void |
initSocket(Socket socket) |
boolean |
isLive() |
boolean |
isSSLEnabled() |
void |
restart() |
void |
shutdown() |
void |
start() |
String |
toString() |
public TcpIpConnectionManager(IOService ioService, ServerSocketChannel serverSocketChannel)
public int getActiveConnectionCount()
getActiveConnectionCount in interface ConnectionManagerpublic int getAllTextConnections()
getAllTextConnections in interface ConnectionManagerpublic int getConnectionCount()
getConnectionCount in interface ConnectionManagerpublic boolean isSSLEnabled()
isSSLEnabled in interface ConnectionManagerpublic void incrementTextConnections()
public SerializationContext getSerializationContext()
public IOService getIOHandler()
public MemberSocketInterceptor getMemberSocketInterceptor()
public void addConnectionListener(ConnectionListener listener)
addConnectionListener in interface ConnectionManagerpublic boolean bind(TcpIpConnection connection, Address remoteEndPoint, Address localEndpoint, boolean replyBack)
public Connection getConnection(Address address)
getConnection in interface ConnectionManagerpublic Connection getOrConnect(Address address)
getOrConnect in interface ConnectionManagerpublic Connection getOrConnect(Address address, boolean silent)
getOrConnect in interface ConnectionManagerpublic void destroyConnection(Connection connection)
destroyConnection in interface ConnectionManagerpublic void start()
start in interface ConnectionManagerpublic void restart()
restart in interface ConnectionManagerpublic void shutdown()
shutdown in interface ConnectionManagerpublic int getCurrentClientConnections()
getCurrentClientConnections in interface ConnectionManagerpublic boolean isLive()
public Map<Address,Connection> getReadonlyConnectionMap()
getReadonlyConnectionMap in interface ConnectionManagerCopyright © 2021 Hazelcast, Inc.. All rights reserved.