Class SimpleMapListener<K,V>
java.lang.Object
com.oracle.coherence.spring.event.mapevent.SimpleMapListener<K,V>
- Type Parameters:
K- the type of the cache keyV- the type of the cache value
- All Implemented Interfaces:
com.tangosol.util.MapListener<K,,V> Comparable<SimpleMapListener<?,,?>> EventListener
- Direct Known Subclasses:
AnnotatedMapListener
public class SimpleMapListener<K,V>
extends Object
implements com.tangosol.util.MapListener<K,V>, Comparable<SimpleMapListener<?,?>>
- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
-
MapListenerRegistrationBean.registerMapListeners(CacheLifecycleEvent)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe wild-card value for cache and service names.Fields inherited from interface com.tangosol.util.MapListener
ASYNCHRONOUS, SYNCHRONOUS, VERSION_AWARE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddType(MapEventType type) Add specified event type to a set of types this interceptor should handle.intcompareTo(SimpleMapListener<?, ?> other) voidentryDeleted(com.tangosol.util.MapEvent<K, V> event) voidentryInserted(com.tangosol.util.MapEvent<K, V> event) voidentryUpdated(com.tangosol.util.MapEvent<K, V> event) com.tangosol.util.Filter<?>Obtain theFilterthat should be used when registering this listener.Return the name of the session that this listener is for.com.tangosol.util.MapEventTransformerObtain theMapEventTransformerthat should be used when registering this listener.booleanReturntrueif this is synchronous event listener.voidsetCacheName(String cacheName) voidsetFilter(com.tangosol.util.Filter<?> filter) voidsetLiteEvent(boolean liteEvents) voidsetScopeName(String scopeName) voidsetServiceName(String serviceName) voidsetSession(String session) voidsetSynchronousEvents(boolean synchronousEvents) voidsetTransformer(com.tangosol.util.MapEventTransformer<K, V, ?> transformer) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tangosol.util.MapListener
characteristics, isAsynchronous, isVersionAware, synchronous
-
Field Details
-
WILD_CARD
The wild-card value for cache and service names.- See Also:
-
-
Constructor Details
-
SimpleMapListener
-
-
Method Details
-
entryInserted
-
entryUpdated
-
entryDeleted
-
compareTo
- Specified by:
compareToin interfaceComparable<K>
-
getSession
Return the name of the session that this listener is for.- Returns:
- the name of the session this listener is for
-
setSession
-
getFilter
public com.tangosol.util.Filter<?> getFilter()Obtain theFilterthat should be used when registering this listener.- Returns:
- the
Filterthat should be used when registering this listener
-
setFilter
public void setFilter(com.tangosol.util.Filter<?> filter) -
getTransformer
public com.tangosol.util.MapEventTransformer getTransformer()Obtain theMapEventTransformerthat should be used when registering this listener.- Returns:
- the
MapEventTransformerthat should be used when registering this listener
-
setTransformer
-
setCacheName
-
setServiceName
-
setScopeName
-
setLiteEvent
public void setLiteEvent(boolean liteEvents) -
isSynchronous
public boolean isSynchronous()Returntrueif this is synchronous event listener. -
setSynchronousEvents
public void setSynchronousEvents(boolean synchronousEvents) -
addType
Add specified event type to a set of types this interceptor should handle.- Parameters:
type- the event type to add
-
getObserver
-
toString
-