C++ Client API Reference for Oracle Coherence
14c (14.1.2.0.0)

F79659-03

coherence/util/MapListener.hpp

00001 /*
00002  * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
00003  *
00004  * Licensed under the Universal Permissive License v 1.0 as shown at
00005  * http://oss.oracle.com/licenses/upl.
00006  */
00007 #ifndef COH_MAP_LISTENER_HPP
00008 #define COH_MAP_LISTENER_HPP
00009 
00010 #include "coherence/lang.ns"
00011 
00012 #include "coherence/util/EventListener.hpp"
00013 #include "coherence/util/MapEvent.hpp"
00014 
00015 COH_OPEN_NAMESPACE2(coherence,util)
00016 
00017 
00018 /**
00019 * The listener interface for receiving MapEvents.
00020 *
00021 * @author js 2008.06.03
00022 */
00023 class COH_EXPORT MapListener
00024     : public interface_spec<MapListener,
00025         implements<EventListener> >
00026     {
00027     // ----- MapListener interface ------------------------------------------
00028 
00029     public:
00030         /**
00031         * Invoked when a map entry has been inserted.
00032         *
00033         * @param vEvent  the MapEvent carrying the insert information
00034         */
00035         virtual void entryInserted(MapEvent::View vEvent) = 0;
00036 
00037         /**
00038         * Invoked when a map entry has been updated.
00039         *
00040         * @param vEvent  the MapEvent carrying the update information
00041         */
00042         virtual void entryUpdated(MapEvent::View vEvent) = 0;
00043 
00044         /**
00045         * Invoked when a map entry has been removed.
00046         *
00047         * @param vEvent  the MapEvent carrying the delete information
00048         */
00049         virtual void entryDeleted(MapEvent::View vEvent) = 0;
00050     };
00051 
00052 COH_CLOSE_NAMESPACE2
00053 
00054 #endif // COH_MAP_LISTENER_HPP
00055 
Copyright © 2000, 2025, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.