public interface AsyncAtomicLong extends AsyncAtomicLongProxy, Resource<AsyncAtomicLong>
| Modifier and Type | Method and Description |
|---|---|
static AsyncAtomicLong |
create(String name)
Creates a new asynchronous atomic long with the default cluster configuration.
|
static AsyncAtomicLong |
create(String name,
ClusterConfig cluster)
Creates a new asynchronous atomic long with the default atomic long configuration.
|
static AsyncAtomicLong |
create(String name,
ClusterConfig cluster,
AsyncAtomicLongConfig config)
Creates a new asynchronous atomic long.
|
addAndGet, compareAndSet, decrementAndGet, get, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, incrementAndGet, setaddShutdownTask, addStartupTask, cluster, namestatic AsyncAtomicLong create(String name)
The atomic long will be constructed with the default cluster configuration. The default cluster configuration
searches for two resources on the classpath - cluster and {cluster-defaults} - in that order. Configuration
options specified in cluster.conf will override those in {cluster-defaults.conf}.
Additionally, the atomic long will be constructed with an atomic long configuration that searches the classpath for
three configuration files - {name}, atomic, atomic-defaults, resource, and
resource-defaults - in that order. The first resource is a configuration resource with the same name
as the atomic long resource. If the resource is namespaced - e.g. `longs.my-long.conf` - then resource
configurations will be loaded according to namespaces as well; for example, `longs.conf`.
name - The asynchronous atomic long name.static AsyncAtomicLong create(String name, ClusterConfig cluster)
The atomic long will be constructed with an atomic long configuration that searches the classpath for three
configuration files - {name}, atomic, atomic-defaults, resource, and
resource-defaults - in that order. The first resource is a configuration resource with the same name
as the atomic long resource. If the resource is namespaced - e.g. `longs.my-long.conf` - then resource
configurations will be loaded according to namespaces as well; for example, `longs.conf`.
name - The asynchronous atomic long name.cluster - The cluster configuration.static AsyncAtomicLong create(String name, ClusterConfig cluster, AsyncAtomicLongConfig config)
name - The asynchronous atomic long name.cluster - The cluster configuration.config - The atomic long configuration.Copyright © 2013-2015. All Rights Reserved.