com.hazelcast.nio
Interface ConnectionManager

All Known Implementing Classes:
TcpIpConnectionManager

public interface ConnectionManager

Responsible for managing Connection objects.


Method Summary
 void addConnectionListener(ConnectionListener connectionListener)
           
 void destroyConnection(Connection conn)
           
 void dumpPerformanceMetrics(StringBuffer sb)
          Dumps all kinds of performance metrics.
 int getActiveConnectionCount()
           
 int getAllTextConnections()
           
 Connection getConnection(Address address)
           
 int getConnectionCount()
           
 int getCurrentClientConnections()
           
 Connection getOrConnect(Address address)
           
 Connection getOrConnect(Address address, boolean silent)
           
 boolean registerConnection(Address address, Connection connection)
           
 void restart()
           
 void shutdown()
           
 void start()
           
 

Method Detail

getCurrentClientConnections

int getCurrentClientConnections()

getConnectionCount

int getConnectionCount()

getAllTextConnections

int getAllTextConnections()

getActiveConnectionCount

int getActiveConnectionCount()

getConnection

Connection getConnection(Address address)

getOrConnect

Connection getOrConnect(Address address)

getOrConnect

Connection getOrConnect(Address address,
                        boolean silent)

registerConnection

boolean registerConnection(Address address,
                           Connection connection)

destroyConnection

void destroyConnection(Connection conn)

shutdown

void shutdown()

start

void start()

restart

void restart()

addConnectionListener

void addConnectionListener(ConnectionListener connectionListener)

dumpPerformanceMetrics

void dumpPerformanceMetrics(StringBuffer sb)
Dumps all kinds of performance metrics. It is up to the implementation to add anything.



Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.