Package org.apache.pulsar.broker.service
Class ConnectionController.DefaultConnectionController
- java.lang.Object
-
- org.apache.pulsar.broker.service.ConnectionController.DefaultConnectionController
-
- All Implemented Interfaces:
ConnectionController
- Enclosing interface:
- ConnectionController
public static class ConnectionController.DefaultConnectionController extends java.lang.Object implements ConnectionController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pulsar.broker.service.ConnectionController
ConnectionController.DefaultConnectionController, ConnectionController.State
-
-
Constructor Summary
Constructors Constructor Description DefaultConnectionController(org.apache.pulsar.broker.ServiceConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecreaseConnection(java.net.SocketAddress remoteAddress)Decrease the number of connections counter.ConnectionController.StateincreaseConnection(java.net.SocketAddress remoteAddress)Increase the number of connections counter.
-
-
-
Method Detail
-
increaseConnection
public ConnectionController.State increaseConnection(java.net.SocketAddress remoteAddress)
Description copied from interface:ConnectionControllerIncrease the number of connections counter.- Specified by:
increaseConnectionin interfaceConnectionController- Returns:
-
decreaseConnection
public void decreaseConnection(java.net.SocketAddress remoteAddress)
Description copied from interface:ConnectionControllerDecrease the number of connections counter.- Specified by:
decreaseConnectionin interfaceConnectionController
-
-