K - The multimap key type.V - The multimap entry type.public interface AsyncMultiMap<K,V> extends AsyncMultiMapProxy<K,V>, net.kuujo.copycat.resource.Resource<AsyncMultiMap<K,V>>
| Modifier and Type | Method and Description |
|---|---|
static <K,V> AsyncMultiMap<K,V> |
create(String name)
Creates a new asynchronous multimap with the default cluster configuration.
|
static <K,V> AsyncMultiMap<K,V> |
create(String name,
net.kuujo.copycat.cluster.ClusterConfig cluster)
Creates a new asynchronous multimap.
|
static <K,V> AsyncMultiMap<K,V> |
create(String name,
net.kuujo.copycat.cluster.ClusterConfig cluster,
AsyncMultiMapConfig config)
Creates a new asynchronous multimap.
|
clear, containsEntry, containsKey, containsValue, entrySet, get, getOrDefault, isEmpty, keySet, put, putAll, remove, remove, replace, replace, replaceAll, size, valuesstatic <K,V> AsyncMultiMap<K,V> create(String name)
The multimap 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 multimap will be constructed with an multimap configuration that searches the classpath for
three configuration files - {name}, multimap, multimap-defaults, resource, and
resource-defaults - in that order. The first resource is a configuration resource with the same name
as the multimap resource. If the resource is namespaced - e.g. `multimaps.my-multimap.conf` - then resource
configurations will be loaded according to namespaces as well; for example, `multimaps.conf`.
K - The multimap key type.V - The multimap value type.name - The asynchronous multimap name.static <K,V> AsyncMultiMap<K,V> create(String name, net.kuujo.copycat.cluster.ClusterConfig cluster)
The multimap will be constructed with an multimap configuration that searches the classpath for
three configuration files - {name}, multimap, multimap-defaults, resource, and
resource-defaults - in that order. The first resource is a configuration resource with the same name
as the multimap resource. If the resource is namespaced - e.g. `multimaps.my-multimap.conf` - then resource
configurations will be loaded according to namespaces as well; for example, `multimaps.conf`.
K - The multimap key type.V - The multimap value type.name - The asynchronous multimap name.cluster - The cluster configuration.static <K,V> AsyncMultiMap<K,V> create(String name, net.kuujo.copycat.cluster.ClusterConfig cluster, AsyncMultiMapConfig config)
K - The multimap key type.V - The multimap value type.name - The asynchronous multimap name.cluster - The cluster configuration.config - The multimap configuration.Copyright © 2013-2015. All Rights Reserved.