T
- as payload typepublic class ListenMapEntryOnHazelCast<T> extends ListenItemOnHazelCast<com.hazelcast.core.EntryEvent<String,T>> implements com.hazelcast.map.listener.MapListener, com.hazelcast.map.listener.EntryAddedListener<String,T>, com.hazelcast.map.listener.EntryUpdatedListener<String,T>
IMap
events on HazelCastSetupHazelCastInstance
Constructor and Description |
---|
ListenMapEntryOnHazelCast() |
ListenMapEntryOnHazelCast(com.hazelcast.core.HazelcastInstance vmInstance,
String containerName) |
ListenMapEntryOnHazelCast(Supplier<com.hazelcast.core.HazelcastInstance> vmInstance,
String containerName) |
Modifier and Type | Method and Description |
---|---|
void |
entryAdded(com.hazelcast.core.EntryEvent<String,T> event) |
void |
entryUpdated(com.hazelcast.core.EntryEvent<String,T> event) |
String |
getEntryListenerId() |
protected com.hazelcast.core.IMap<String,T> |
getHazelCastMap() |
void |
init()
Bind this Listener to its Hazelcast
ListenItemOnHazelCast.vmInstance |
void |
itemAdded(com.hazelcast.core.ItemEvent<com.hazelcast.core.EntryEvent<String,T>> item) |
void |
itemRemoved(com.hazelcast.core.ItemEvent<com.hazelcast.core.EntryEvent<String,T>> item) |
void |
reInit(com.hazelcast.core.HazelcastInstance vmInstance) |
getConsumer, getContainerName, getHazelCastCollection, getVmInstance, setConsumer, setContainerName, setVmInstance
public ListenMapEntryOnHazelCast()
public ListenMapEntryOnHazelCast(Supplier<com.hazelcast.core.HazelcastInstance> vmInstance, String containerName)
public ListenMapEntryOnHazelCast(com.hazelcast.core.HazelcastInstance vmInstance, String containerName)
@PostConstruct public void init()
ListenItemOnHazelCast.vmInstance
init
in class ListenItemOnHazelCast<com.hazelcast.core.EntryEvent<String,T>>
public void reInit(com.hazelcast.core.HazelcastInstance vmInstance)
reInit
in class ListenItemOnHazelCast<com.hazelcast.core.EntryEvent<String,T>>
public void itemAdded(com.hazelcast.core.ItemEvent<com.hazelcast.core.EntryEvent<String,T>> item)
public void itemRemoved(com.hazelcast.core.ItemEvent<com.hazelcast.core.EntryEvent<String,T>> item)
itemRemoved
in interface com.hazelcast.core.ItemListener<com.hazelcast.core.EntryEvent<String,T>>
itemRemoved
in class ListenItemOnHazelCast<com.hazelcast.core.EntryEvent<String,T>>
public String getEntryListenerId()
Copyright © 2018. All rights reserved.