public abstract class ClusteredCounterHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.infinispan.manager.EmbeddedCacheManager |
cacheManager |
| Constructor and Description |
|---|
ClusteredCounterHandler(org.infinispan.manager.EmbeddedCacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
protected org.infinispan.counter.api.StrongCounter |
getCounterOrCreateIt(String counterName,
int initialValue)
Create a counter if one is not defined already, otherwise return the existing one.
|
abstract Number |
nextValue(NextValueRequest request) |
protected Number |
nextValue(NextValueRequest request,
org.infinispan.counter.api.StrongCounter strongCounter) |
public ClusteredCounterHandler(org.infinispan.manager.EmbeddedCacheManager cacheManager)
protected org.infinispan.counter.api.StrongCounter getCounterOrCreateIt(String counterName, int initialValue)
counterName - unique name for the counterinitialValue - initial value for the counterStrongCounterprotected Number nextValue(NextValueRequest request, org.infinispan.counter.api.StrongCounter strongCounter)
public abstract Number nextValue(NextValueRequest request)
Copyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.