The LoadBalancingResult object
A
LoadBalancingResult object is the result of a load balancing operation.
For example, the rebalanceStartablePlugins method on plugin
DefaultBackgroundTaskLoadBalancingPlugin returns a
LoadBalancingResult object. Public class
LoadBalancingResult provides the following methods.| Method | Returns | Description |
|---|---|---|
getRepeatDelay() |
long |
Method returns the delay value from load balancing result as a
long integer. |
getRepeatUnit() |
unit |
Method returns the delay time unit from load balancing result. |
isNeverRepeat() |
Boolean | Method returns one of the following:
|
repeatAfter(unit,
delay) |
LoadBalancingResult |
Static method that repeats the load balancing operation after the specified
delay. Parameters delay and unit provide the time to wait before repeating the load balancing operation.. The delay value cannot be negative. |
neverRepeat() |
LoadBalancingResult |
Static method that disable the load balancing operation after one attempt. |
