Package net.timewalker.ffmq4.listeners
Interface ClientListener
-
- All Known Subinterfaces:
NIOTcpListenerMBean,TcpListenerMBean
- All Known Implementing Classes:
AbstractClientListener,AbstractTcpClientListener,NIOTcpListener,TcpListener
public interface ClientListenerListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAcceptedTotal()Get the total number of clients accepted by this listener since startup or statistics resetintgetActiveClients()Get the current number of active clients for this listenerintgetCapacity()Get the listener max capacityintgetDroppedTotal()Get the total number of clients dropped by this listener since startup or statistics resetStringgetEngineName()Get the associated local engine nameintgetMaxActiveClients()Get the peak number of active clients for this listener since startup or statistics resetStringgetName()Get the listener namebooleanisStarted()Test if the listener is startedvoidresetStats()Reset this listener's statisticsvoidstart()Start the listenervoidstop()Stop the listener
-
-
-
Method Detail
-
getName
String getName()
Get the listener name
-
getEngineName
String getEngineName()
Get the associated local engine name
-
start
void start() throws javax.jms.JMSExceptionStart the listener- Throws:
javax.jms.JMSException
-
stop
void stop()
Stop the listener
-
isStarted
boolean isStarted()
Test if the listener is started
-
getActiveClients
int getActiveClients()
Get the current number of active clients for this listener- Returns:
- the current number of active clients for this listener
-
getAcceptedTotal
int getAcceptedTotal()
Get the total number of clients accepted by this listener since startup or statistics reset- Returns:
- the total number of clients accepted by this listener
-
getDroppedTotal
int getDroppedTotal()
Get the total number of clients dropped by this listener since startup or statistics reset- Returns:
- the total number of clients dropped by this listener
-
getMaxActiveClients
int getMaxActiveClients()
Get the peak number of active clients for this listener since startup or statistics reset- Returns:
- the peak number of active clients for this listener
-
getCapacity
int getCapacity()
Get the listener max capacity- Returns:
- the listener max capacity
-
resetStats
void resetStats()
Reset this listener's statistics
-
-