Class OrderInterceptor.Counter
- java.lang.Object
-
- org.apache.catalina.tribes.group.interceptors.OrderInterceptor.Counter
-
- Enclosing class:
- OrderInterceptor
protected static class OrderInterceptor.Counter extends java.lang.ObjectCounter for tracking message sequence numbers.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCounter()Returns the current counter value.intinc()Increments the counter and returns the new value.voidsetCounter(int counter)Sets the counter value.
-
-
-
Method Detail
-
getCounter
public int getCounter()
Returns the current counter value.- Returns:
- The counter value
-
setCounter
public void setCounter(int counter)
Sets the counter value.- Parameters:
counter- The new counter value
-
inc
public int inc()
Increments the counter and returns the new value.- Returns:
- The new counter value
-
-