Module com.hazelcast.vertx
Class EnterpriseHazelcastCounter
java.lang.Object
com.hazelcast.vertx.io.vertx.spi.cluster.hazelcast.impl.EnterpriseHazelcastCounter
- All Implemented Interfaces:
io.vertx.core.shareddata.Counter
Implementation of
Counter based on Hazelcast CP Subsystem-
Constructor Summary
ConstructorsConstructorDescriptionEnterpriseHazelcastCounter(io.vertx.core.internal.VertxInternal vertx, com.hazelcast.cp.IAtomicLong atomicLong) -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.Future<Long> addAndGet(long value) io.vertx.core.Future<Boolean> compareAndSet(long expected, long value) io.vertx.core.Future<Long> io.vertx.core.Future<Long> get()io.vertx.core.Future<Long> getAndAdd(long value) io.vertx.core.Future<Long> io.vertx.core.Future<Long>
-
Constructor Details
-
EnterpriseHazelcastCounter
public EnterpriseHazelcastCounter(io.vertx.core.internal.VertxInternal vertx, com.hazelcast.cp.IAtomicLong atomicLong)
-
-
Method Details
-
get
- Specified by:
getin interfaceio.vertx.core.shareddata.Counter
-
incrementAndGet
- Specified by:
incrementAndGetin interfaceio.vertx.core.shareddata.Counter
-
getAndIncrement
- Specified by:
getAndIncrementin interfaceio.vertx.core.shareddata.Counter
-
decrementAndGet
- Specified by:
decrementAndGetin interfaceio.vertx.core.shareddata.Counter
-
addAndGet
- Specified by:
addAndGetin interfaceio.vertx.core.shareddata.Counter
-
getAndAdd
- Specified by:
getAndAddin interfaceio.vertx.core.shareddata.Counter
-
compareAndSet
- Specified by:
compareAndSetin interfaceio.vertx.core.shareddata.Counter
-