T - The set data type.public interface AsyncSet<T> extends AsyncCollection<AsyncSet<T>,T>, AsyncSetProxy<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> AsyncSet<T> |
create(String name)
Creates a new asynchronous set with the default cluster configuration.
|
static <T> AsyncSet<T> |
create(String name,
net.kuujo.copycat.cluster.ClusterConfig cluster)
Creates a new asynchronous set.
|
static <T> AsyncSet<T> |
create(String name,
net.kuujo.copycat.cluster.ClusterConfig cluster,
AsyncSetConfig config)
Creates a new asynchronous set.
|
static <T> AsyncSet<T> create(String name)
The set 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 set will be constructed with an set configuration that searches the classpath for
three configuration files - {name}, set, set-defaults, resource, and
resource-defaults - in that order. The first resource is a configuration resource with the same name
as the set resource. If the resource is namespaced - e.g. `sets.my-set.conf` - then resource
configurations will be loaded according to namespaces as well; for example, `sets.conf`.
T - The set data type.name - The asynchronous set name.static <T> AsyncSet<T> create(String name, net.kuujo.copycat.cluster.ClusterConfig cluster)
The set will be constructed with an set configuration that searches the classpath for
three configuration files - {name}, set, set-defaults, resource, and
resource-defaults - in that order. The first resource is a configuration resource with the same name
as the set resource. If the resource is namespaced - e.g. `sets.my-set.conf` - then resource
configurations will be loaded according to namespaces as well; for example, `sets.conf`.
T - The set data type.name - The asynchronous set name.cluster - The cluster configuration.static <T> AsyncSet<T> create(String name, net.kuujo.copycat.cluster.ClusterConfig cluster, AsyncSetConfig config)
T - The set data type.name - The asynchronous set name.cluster - The cluster configuration.config - The set configuration.Copyright © 2013-2015. All Rights Reserved.