Package ome.services.sessions.stats
Class LongCounter
- java.lang.Object
-
- ome.services.sessions.stats.LongCounter
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationEventPublisherAware
- Direct Known Subclasses:
MethodCounter
,ObjectsReadCounter
,ObjectsWrittenCounter
,SessionsCreatedCounter
public abstract class LongCounter extends java.lang.Object implements org.springframework.context.ApplicationEventPublisherAware
Counter object which increments an internal long by some integer value, and according to some strategy publishes anInternalMessage
subclass.- Since:
- Beta4
-
-
Field Summary
Fields Modifier and Type Field Description protected long
count
-
Constructor Summary
Constructors Constructor Description LongCounter(int interval)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
increment(int incr)
protected abstract ome.util.messages.InternalMessage
message()
void
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
-
-
-
Method Detail
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- Specified by:
setApplicationEventPublisher
in interfaceorg.springframework.context.ApplicationEventPublisherAware
-
increment
public void increment(int incr)
-
message
protected abstract ome.util.messages.InternalMessage message()
- Returns:
- The message.
-
-