ehcache

net.sf.ehcache.util.counter
Interface CounterManager

All Known Implementing Classes:
CounterManagerImpl

public interface CounterManager

A Counter Manager that accepts a config to create counters. Creates counter's based on CounterConfig. This manages the lifycycle of a counter

Since:
1.7
Author:
Abhishek Sanoujam

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
 

Method Detail

createCounter

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

Parameters:
config -
Returns:
The counter created and managed by this CounterManager

addCounter

void addCounter(Counter counter)
Adds a counter.


shutdown

void shutdown()
Shuts down this counter manager


shutdownCounter

void shutdownCounter(Counter counter)
Shuts down the counter

Parameters:
counter -

ehcache

Copyright 2001-2017, Terracotta, Inc.