public final class HighlyAvailableMap<K extends Serializable,V> extends Object implements Map<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
HighlyAvailableMap.NoopReplicationManager<K extends Serializable,V> |
static class |
HighlyAvailableMap.SimpleReplicationManager<K extends Serializable,V extends Serializable> |
static class |
HighlyAvailableMap.StickyReplicationManager<K extends Serializable,V extends Serializable> |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
static <K extends Serializable,V extends Serializable> |
create(String name,
org.glassfish.ha.store.api.BackingStore<K,V> backingStore) |
static <K extends Serializable,V> |
create(String name,
ReplicationManager<K,V> replicationManager) |
static <K extends Serializable,V extends Serializable> |
createSticky(String name,
org.glassfish.ha.store.api.BackingStore<StickyKey,V> backingStore) |
void |
destroy() |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
Map<K,V> |
getLocalMapCopy() |
ReplicationManager<K,V> |
getReplicationManager() |
void |
invalidateCache() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static <K extends Serializable,V extends Serializable> HighlyAvailableMap<K,V> create(String name, org.glassfish.ha.store.api.BackingStore<K,V> backingStore)
public static <K extends Serializable,V extends Serializable> HighlyAvailableMap<K,V> createSticky(String name, org.glassfish.ha.store.api.BackingStore<StickyKey,V> backingStore)
public static <K extends Serializable,V> HighlyAvailableMap<K,V> create(String name, ReplicationManager<K,V> replicationManager)
public int size()
size in interface Map<K extends Serializable,V>public boolean isEmpty()
isEmpty in interface Map<K extends Serializable,V>public boolean containsKey(Object key)
containsKey in interface Map<K extends Serializable,V>public boolean containsValue(Object value)
containsValue in interface Map<K extends Serializable,V>public void putAll(Map<? extends K,? extends V> m)
putAll in interface Map<K extends Serializable,V>public void clear()
clear in interface Map<K extends Serializable,V>public Collection<V> values()
values in interface Map<K extends Serializable,V>public Set<Map.Entry<K,V>> entrySet()
entrySet in interface Map<K extends Serializable,V>public void invalidateCache()
public ReplicationManager<K,V> getReplicationManager()
public void close()
public void destroy()
Copyright © 2005–2018 Oracle Corporation. All rights reserved.