Top Description Methods
net.sf.ehcache.util.counter

public Interface CounterManager

Known Direct Implementers
net.sf.ehcache.util.counter.CounterManagerImpl

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

Method Summary

Modifier and TypeMethod and Description
public void
addCounter(Counter counter)

Adds a counter.

public Counter

Returns:

The counter created and managed by this CounterManager
createCounter
(CounterConfig config)

Creates a Counter based on the passed config

public void
shutdown()

Shuts down this counter manager

public void
shutdownCounter(Counter counter)

Shuts down the counter

Method Detail

addCounterback to summary
public void addCounter(Counter counter)

Adds a counter.

createCounterback to summary
public Counter createCounter(CounterConfig config)

Creates a Counter based on the passed config

Returns:Counter

The counter created and managed by this CounterManager

shutdownback to summary
public void shutdown()

Shuts down this counter manager

shutdownCounterback to summary
public void shutdownCounter(Counter counter)

Shuts down the counter