Package com.tangosol.net
Interface ServiceLoad
- All Superinterfaces:
Comparable
- All Known Subinterfaces:
ProxyServiceLoad
A ServiceLoad encapsulates information about the current utilization
of a Service. It can be used to implement load balancing algorithms
that control the distribution of clients across individual instances of a
clustered Service.
- Since:
- Coherence 3.7
- Author:
- jh 2010.12.07
-
Method Summary
Modifier and TypeMethodDescriptionintReturn the connection count.intReturn the maximum number of simultaneous connections allowed.intReturn the number of connections that are pending.intReturn the number of daemon threads that are currently processing messages.intReturn number of daemon threads that are used to process messages.intReturn the number of messages that are queued for processing.intReturn the number of messages that are queued for delivery.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getConnectionCount
int getConnectionCount()Return the connection count.- Returns:
- the number of connected clients
-
getConnectionPendingCount
int getConnectionPendingCount()Return the number of connections that are pending.- Returns:
- the number of pending connections
-
getConnectionLimit
int getConnectionLimit()Return the maximum number of simultaneous connections allowed. Valid values are positive integers and zero. A value of zero implies no limit.- Returns:
- the maximum number of connections
-
getDaemonCount
int getDaemonCount()Return number of daemon threads that are used to process messages.- Returns:
- the number of daemon threads
-
getDaemonActiveCount
int getDaemonActiveCount()Return the number of daemon threads that are currently processing messages.- Returns:
- the number of active daemon threads
-
getMessageBacklogIncoming
int getMessageBacklogIncoming()Return the number of messages that are queued for processing.- Returns:
- the number of outstanding incoming messages
-
getMessageBacklogOutgoing
int getMessageBacklogOutgoing()Return the number of messages that are queued for delivery.- Returns:
- the number of outstanding outgoing messages
-