ehcache

net.sf.ehcache.util.counter
Class CounterManagerImpl

java.lang.Object
  extended by net.sf.ehcache.util.counter.CounterManagerImpl
All Implemented Interfaces:
CounterManager

public class CounterManagerImpl
extends Object
implements CounterManager

An implementation of a CounterManager.

Since:
1.7
Author:
Abhishek Sanoujam

Constructor Summary
CounterManagerImpl(FailSafeTimer timer)
          Constructor that accepts a timer that will be used for scheduling sampled counter if any is created
 
Method Summary
 void addCounter(Counter counter)
          Adds a counter.
 Counter createCounter(CounterConfig config)
          Creates a Counter based on the passed config
 void shutdown()
          Shuts down this counter manager
 void shutdownCounter(Counter counter)
          Shuts down the counter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterManagerImpl

public CounterManagerImpl(FailSafeTimer timer)
Constructor that accepts a timer that will be used for scheduling sampled counter if any is created

Method Detail

shutdown

public void shutdown()
Shuts down this counter manager

Specified by:
shutdown in interface CounterManager

createCounter

public Counter createCounter(CounterConfig config)
Creates a Counter based on the passed config

Specified by:
createCounter in interface CounterManager
Returns:
The counter created and managed by this CounterManager

addCounter

public void addCounter(Counter counter)
Adds a counter.

Specified by:
addCounter in interface CounterManager

shutdownCounter

public void shutdownCounter(Counter counter)
Shuts down the counter

Specified by:
shutdownCounter in interface CounterManager

ehcache

Copyright 2001-2016, Terracotta, Inc.