K - IMap key type after deserializationV - IMap value type after deserializationpublic class AbstractHazelcastStore.RemoteCacheEventHandler<K,V>
extends com.hazelcast.core.EntryAdapter<byte[],byte[]>
| Constructor and Description |
|---|
RemoteCacheEventHandler(com.google.common.cache.LoadingCache<K,com.google.common.base.Optional<V>> cache)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
entryAdded(com.hazelcast.core.EntryEvent<byte[],byte[]> event) |
void |
entryRemoved(com.hazelcast.core.EntryEvent<byte[],byte[]> event) |
void |
entryUpdated(com.hazelcast.core.EntryEvent<byte[],byte[]> event) |
void |
mapCleared(com.hazelcast.core.MapEvent event) |
protected void |
onAdd(K key,
V newVal)
Cache entry addition hook.
|
protected void |
onRemove(K key,
V val)
Cache entry remove hook.
|
protected void |
onUpdate(K key,
V oldValue,
V newVal)
Cache entry update hook.
|
public void mapCleared(com.hazelcast.core.MapEvent event)
mapCleared in interface com.hazelcast.core.EntryListener<byte[],byte[]>mapCleared in class com.hazelcast.core.EntryAdapter<byte[],byte[]>public void entryAdded(com.hazelcast.core.EntryEvent<byte[],byte[]> event)
entryAdded in interface com.hazelcast.core.EntryListener<byte[],byte[]>entryAdded in class com.hazelcast.core.EntryAdapter<byte[],byte[]>public void entryUpdated(com.hazelcast.core.EntryEvent<byte[],byte[]> event)
entryUpdated in interface com.hazelcast.core.EntryListener<byte[],byte[]>entryUpdated in class com.hazelcast.core.EntryAdapter<byte[],byte[]>public void entryRemoved(com.hazelcast.core.EntryEvent<byte[],byte[]> event)
entryRemoved in interface com.hazelcast.core.EntryListener<byte[],byte[]>entryRemoved in class com.hazelcast.core.EntryAdapter<byte[],byte[]>protected void onAdd(K key, V newVal)
key - new keynewVal - new valueprotected void onUpdate(K key, V oldValue, V newVal)
key - new keyoldValue - old valuenewVal - new valueCopyright © 2015. All rights reserved.