public interface ServiceActivityData
Modifier and Type | Method and Description |
---|---|
long |
decrement()
Decrements the existing activity count by one.
This method will not allow activity count to go below zero. If decrement() is called when count is already 0, then it will not be decremented further and 0 will be returned. |
long |
get()
Returns the current activity count.
|
long |
increment()
Increments the existing activity count by one.
When snap-in is initialized, the activity count is zero (By calling increment() first time, the count would go to one). |
void |
set(long newValue)
Sets the activity count to newValue.
|
long increment()
long decrement()
void set(long newValue) throws IllegalArgumentException
decrement()
this method will not allow the activity count to go below
zero. If newValue is negative then existing count value will not be
updated.newValue
- IllegalArgumentException
- If newValue is less than zero.long get()
Copyright © 2014 Avaya. All Rights Reserved.