/** * Adds a removeAll event to the queue if the maxSize is greater than 0; * <p> * @param cacheName - region name * @param key - item key * @param listenerId - identifies the caller. */ @Override public void remove( String cacheName, K key, long listenerId ) { if ( maxQueueSize > 0 ) { RemoveEvent<K> event = new RemoveEvent<K>( cacheName, key, listenerId ); addQueue( event ); } // Zombies have no inner life }
/** * Adds an update event to the queue if the maxSize is greater than 0; * <p> * @param item ICacheElement * @param listenerId - identifies the caller. */ @Override public void update( ICacheElement<K, V> item, long listenerId ) { if ( maxQueueSize > 0 ) { PutEvent<K, V> event = new PutEvent<K, V>( item, listenerId ); addQueue( event ); } // Zombies have no inner life }
/** * Adds a removeAll event to the queue if the maxSize is greater than 0; * <p> * @param cacheName - name of the region * @param listenerId - identifies the caller. */ @Override public void removeAll( String cacheName, long listenerId ) { if ( maxQueueSize > 0 ) { RemoveAllEvent event = new RemoveAllEvent( cacheName, listenerId ); addQueue( event ); } // Zombies have no inner life }