Search in sources :

Example 1 with ListenerAdapter

use of com.hazelcast.map.impl.ListenerAdapter in project hazelcast by hazelcast.

the class ClientMapProxy method addEntryListener.

@Override
public String addEntryListener(MapListener listener, Predicate<K, V> predicate, K key, boolean includeValue) {
    checkNotNull(listener, NULL_LISTENER_IS_NOT_ALLOWED);
    checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
    ListenerAdapter listenerAdaptor = createListenerAdapter(listener);
    return addEntryListenerInternal(listenerAdaptor, predicate, key, includeValue);
}
Also used : ListenerAdapter(com.hazelcast.map.impl.ListenerAdapter) ListenerAdapters.createListenerAdapter(com.hazelcast.map.impl.ListenerAdapters.createListenerAdapter)

Example 2 with ListenerAdapter

use of com.hazelcast.map.impl.ListenerAdapter in project hazelcast by hazelcast.

the class ClientMapProxy method addEntryListener.

@Override
public String addEntryListener(MapListener listener, K key, final boolean includeValue) {
    checkNotNull(listener, NULL_LISTENER_IS_NOT_ALLOWED);
    checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
    ListenerAdapter listenerAdaptor = createListenerAdapter(listener);
    return addEntryListenerInternal(listenerAdaptor, key, includeValue);
}
Also used : ListenerAdapter(com.hazelcast.map.impl.ListenerAdapter) ListenerAdapters.createListenerAdapter(com.hazelcast.map.impl.ListenerAdapters.createListenerAdapter)

Example 3 with ListenerAdapter

use of com.hazelcast.map.impl.ListenerAdapter in project hazelcast by hazelcast.

the class ClientMapProxy method addEntryListener.

@Override
public String addEntryListener(EntryListener listener, K key, boolean includeValue) {
    checkNotNull(listener, NULL_LISTENER_IS_NOT_ALLOWED);
    checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
    ListenerAdapter listenerAdaptor = createListenerAdapter(listener);
    return addEntryListenerInternal(listenerAdaptor, key, includeValue);
}
Also used : ListenerAdapter(com.hazelcast.map.impl.ListenerAdapter) ListenerAdapters.createListenerAdapter(com.hazelcast.map.impl.ListenerAdapters.createListenerAdapter)

Example 4 with ListenerAdapter

use of com.hazelcast.map.impl.ListenerAdapter in project hazelcast by hazelcast.

the class ClientMapProxy method addEntryListener.

@Override
public String addEntryListener(MapListener listener, final boolean includeValue) {
    checkNotNull(listener, NULL_LISTENER_IS_NOT_ALLOWED);
    ListenerAdapter listenerAdaptor = createListenerAdapter(listener);
    return addEntryListenerInternal(listenerAdaptor, includeValue);
}
Also used : ListenerAdapter(com.hazelcast.map.impl.ListenerAdapter) ListenerAdapters.createListenerAdapter(com.hazelcast.map.impl.ListenerAdapters.createListenerAdapter)

Example 5 with ListenerAdapter

use of com.hazelcast.map.impl.ListenerAdapter in project hazelcast by hazelcast.

the class ClientMapProxy method addEntryListener.

@Override
public String addEntryListener(EntryListener listener, Predicate<K, V> predicate, K key, boolean includeValue) {
    checkNotNull(listener, NULL_LISTENER_IS_NOT_ALLOWED);
    checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED);
    ListenerAdapter listenerAdaptor = createListenerAdapter(listener);
    return addEntryListenerInternal(listenerAdaptor, predicate, key, includeValue);
}
Also used : ListenerAdapter(com.hazelcast.map.impl.ListenerAdapter) ListenerAdapters.createListenerAdapter(com.hazelcast.map.impl.ListenerAdapters.createListenerAdapter)

Aggregations

ListenerAdapter (com.hazelcast.map.impl.ListenerAdapter)18 ListenerAdapters.createListenerAdapter (com.hazelcast.map.impl.ListenerAdapters.createListenerAdapter)11 ClientMessage (com.hazelcast.client.impl.protocol.ClientMessage)2 Nonnull (javax.annotation.Nonnull)2 Address (com.hazelcast.cluster.Address)1 EntryEvent (com.hazelcast.core.EntryEvent)1 Data (com.hazelcast.internal.serialization.Data)1 ContextMutexFactory (com.hazelcast.internal.util.ContextMutexFactory)1 MapUtil.createHashMap (com.hazelcast.internal.util.MapUtil.createHashMap)1 IMapEvent (com.hazelcast.map.IMapEvent)1 MapInterceptor (com.hazelcast.map.MapInterceptor)1 EventListenerFilter (com.hazelcast.map.impl.EventListenerFilter)1 InterceptorRegistry (com.hazelcast.map.impl.InterceptorRegistry)1 MapContainer (com.hazelcast.map.impl.MapContainer)1 MapDataSerializerHook (com.hazelcast.map.impl.MapDataSerializerHook)1 MapService (com.hazelcast.map.impl.MapService)1 MapServiceContext (com.hazelcast.map.impl.MapServiceContext)1 QueryCacheContext (com.hazelcast.map.impl.querycache.QueryCacheContext)1 QueryCacheEventService (com.hazelcast.map.impl.querycache.QueryCacheEventService)1 QueryCacheListenerAdapter (com.hazelcast.map.impl.querycache.QueryCacheListenerAdapter)1