Class AbstractTcpClientListener
- java.lang.Object
-
- net.timewalker.ffmq4.listeners.AbstractClientListener
-
- net.timewalker.ffmq4.listeners.tcp.AbstractTcpClientListener
-
- All Implemented Interfaces:
ClientListener
- Direct Known Subclasses:
NIOTcpListener,TcpListener
public abstract class AbstractTcpClientListener extends AbstractClientListener
AbstractTcpClientListener
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_TCP_BACK_LOGprotected StringlistenAddrprotected intlistenerCapacityprotected intlistenPort-
Fields inherited from class net.timewalker.ffmq4.listeners.AbstractClientListener
acceptedClients, jmxAgent, localEngine, settings, started
-
-
Constructor Summary
Constructors Constructor Description AbstractTcpClientListener(net.timewalker.ffmq4.local.FFMQEngine localEngine, net.timewalker.ffmq4.utils.Settings settings, JMXAgent jmxAgent, String listenAddr, int listenPort)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InetAddressgetBindAddress()intgetCapacity()Get the listener max capacity-
Methods inherited from class net.timewalker.ffmq4.listeners.AbstractClientListener
closeRemainingClients, getAcceptedTotal, getActiveClients, getDroppedTotal, getEngineName, getMaxActiveClients, isStarted, registerClient, resetStats, unregisterClient
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.timewalker.ffmq4.listeners.ClientListener
getName, start, stop
-
-
-
-
Field Detail
-
DEFAULT_TCP_BACK_LOG
protected static final int DEFAULT_TCP_BACK_LOG
- See Also:
- Constant Field Values
-
listenAddr
protected String listenAddr
-
listenPort
protected int listenPort
-
listenerCapacity
protected int listenerCapacity
-
-
Method Detail
-
getCapacity
public int getCapacity()
Description copied from interface:ClientListenerGet the listener max capacity- Returns:
- the listener max capacity
-
getBindAddress
protected InetAddress getBindAddress() throws UnknownHostException
- Throws:
UnknownHostException
-
-