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:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The wild-card value for cache and service names.Fields inherited from interface com.tangosol.util.MapListener
ASYNCHRONOUS, SYNCHRONOUS, VERSION_AWARE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addType
(MapEventType type) Add specified event type to a set of types this interceptor should handle.int
compareTo
(SimpleMapListener<?, ?> other) void
entryDeleted
(com.tangosol.util.MapEvent<K, V> event) void
entryInserted
(com.tangosol.util.MapEvent<K, V> event) void
entryUpdated
(com.tangosol.util.MapEvent<K, V> event) com.tangosol.util.Filter
<?> Obtain theFilter
that should be used when registering this listener.Return the name of the session that this listener is for.com.tangosol.util.MapEventTransformer
Obtain theMapEventTransformer
that should be used when registering this listener.boolean
Returntrue
if this is synchronous event listener.void
setCacheName
(String cacheName) void
setFilter
(com.tangosol.util.Filter<?> filter) void
setLiteEvent
(boolean liteEvents) void
setScopeName
(String scopeName) void
setServiceName
(String serviceName) void
setSession
(String session) void
setSynchronousEvents
(boolean synchronousEvents) void
setTransformer
(com.tangosol.util.MapEventTransformer<K, V, ?> transformer) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
compareTo
in 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 theFilter
that should be used when registering this listener.- Returns:
- the
Filter
that should be used when registering this listener
-
setFilter
public void setFilter(com.tangosol.util.Filter<?> filter) -
getTransformer
public com.tangosol.util.MapEventTransformer getTransformer()Obtain theMapEventTransformer
that should be used when registering this listener.- Returns:
- the
MapEventTransformer
that should be used when registering this listener
-
setTransformer
-
setCacheName
-
setServiceName
-
setScopeName
-
setLiteEvent
public void setLiteEvent(boolean liteEvents) -
isSynchronous
public boolean isSynchronous()Returntrue
if 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
-