3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
11 * @file IGetUpdates.java
13 * @brief Interface that needs to be implemented by the listeners of
14 * updates received on data structure shared in the cluster
16 * Interface that needs to be implemented by the listeners of updates
17 * received on data structure shared in the cluster
19 package org.opendaylight.controller.clustering.services;
22 * @deprecated for internal use
23 * Interface that needs to be implemented by the listeners of
24 * updates received on data structure shared in the cluster
26 public interface IGetUpdates<K, V> {
28 * Invoked when a new entry is available in the cache, the key is
29 * only provided, the value will come as an entryUpdate invocation
31 * @param key Key for the entry just created
32 * @param containerName container for which the update has been received
33 * @param cacheName name of the cache for which update has been received
35 void entryCreated(K key, String containerName, String cacheName,
39 * Called anytime a given entry is updated
41 * @param key Key for the entry modified
42 * @param new_value the new value the key will have
43 * @param containerName container for which the update has been received
44 * @param cacheName name of the cache for which update has been received
46 void entryUpdated(K key, V new_value, String containerName,
47 String cacheName, boolean local);
50 * Called anytime a given key is removed from the
51 * ConcurrentHashMap we are listening to.
53 * @param key Key of the entry removed
54 * @param containerName container for which the update has been received
55 * @param cacheName name of the cache for which update has been received
57 void entryDeleted(K key, String containerName, String cacheName,