blob: f224da523c727247978da23c6e58b6e7e0f382e6 [file] [log] [blame]
Jonathan Hartdb3af892015-01-26 13:19:07 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Jonathan Hartdb3af892015-01-26 13:19:07 -08003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Jonathan Hart6ec029a2015-03-24 17:12:35 -070016package org.onosproject.store.service;
Jonathan Hartdb3af892015-01-26 13:19:07 -080017
18/**
Madan Jampanicab114c2015-07-23 00:14:19 -070019 * Listener to be notified about updates to a EventuallyConsistentMap.
Jonathan Hartdb3af892015-01-26 13:19:07 -080020 */
Jonathan Hart539a6462015-01-27 17:05:43 -080021public interface EventuallyConsistentMapListener<K, V> {
Jonathan Hartdb3af892015-01-26 13:19:07 -080022
23 /**
24 * Reacts to the specified event.
25 *
26 * @param event the event
27 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070028 void event(EventuallyConsistentMapEvent<K, V> event);
Jonathan Hartdb3af892015-01-26 13:19:07 -080029}