Package com.tangosol.net
Interface ServiceLoad
-
- All Superinterfaces:
Comparable
- All Known Subinterfaces:
ProxyServiceLoad
public interface ServiceLoad extends Comparable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getConnectionCount()
Return the connection count.int
getConnectionLimit()
Return the maximum number of simultaneous connections allowed.int
getConnectionPendingCount()
Return the number of connections that are pending.int
getDaemonActiveCount()
Return the number of daemon threads that are currently processing messages.int
getDaemonCount()
Return number of daemon threads that are used to process messages.int
getMessageBacklogIncoming()
Return the number of messages that are queued for processing.int
getMessageBacklogOutgoing()
Return the number of messages that are queued for delivery.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
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
-
-