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