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