public interface ClientConnectionManager extends ConnectionListenable
ClientConnection
objects.Modifier and Type | Method and Description |
---|---|
void |
addConnectionHeartbeatListener(ConnectionHeartbeatListener connectionHeartbeatListener) |
Collection<ClientConnection> |
getActiveConnections() |
Connection |
getConnection(Address address) |
Connection |
getOrConnect(Address address,
boolean asOwner) |
Connection |
getOrTriggerConnect(Address address,
boolean asOwner) |
void |
handleClientMessage(ClientMessage message,
Connection connection)
Handles incoming network package
|
boolean |
isAlive()
Check if client connection manager is alive.
|
void |
shutdown()
Shutdown clientConnectionManager
|
void |
start()
Start clientConnectionManager
|
addConnectionListener
void shutdown()
boolean isAlive()
void start()
Connection getConnection(Address address)
address
- to be connectedConnection getOrConnect(Address address, boolean asOwner) throws IOException
address
- to be connectedasOwner
- true if connection should be authenticated as owner, false otherwiseIOException
- if connection is not establishedConnection getOrTriggerConnect(Address address, boolean asOwner) throws IOException
address
- to be connectedasOwner
- true if connection should be authenticated as owner, false otherwiseIOException
- if connection is not able to triggeredvoid handleClientMessage(ClientMessage message, Connection connection)
message
- to be processedconnection
- that client message come fromvoid addConnectionHeartbeatListener(ConnectionHeartbeatListener connectionHeartbeatListener)
Collection<ClientConnection> getActiveConnections()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.