Oracle Coherence for C++ API
Release 3.6.0.0

E15728-01

coherence/util/MapListener.hpp

00001 /*
00002 * MapListener.hpp
00003 *
00004 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
00005 *
00006 * Oracle is a registered trademarks of Oracle Corporation and/or its
00007 * affiliates.
00008 *
00009 * This software is the confidential and proprietary information of Oracle
00010 * Corporation. You shall not disclose such confidential and proprietary
00011 * information and shall use it only in accordance with the terms of the
00012 * license agreement you entered into with Oracle.
00013 *
00014 * This notice may not be removed or altered.
00015 */
00016 #ifndef COH_MAP_LISTENER_HPP
00017 #define COH_MAP_LISTENER_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/util/EventListener.hpp"
00022 #include "coherence/util/MapEvent.hpp"
00023 
00024 COH_OPEN_NAMESPACE2(coherence,util)
00025 
00026 
00027 /**
00028 * The listener interface for receiving MapEvents.
00029 *
00030 * @author js 2008.06.03
00031 */
00032 class COH_EXPORT MapListener
00033     : public interface_spec<MapListener,
00034         implements<EventListener> >
00035     {
00036     // ----- MapListener interface ------------------------------------------
00037 
00038     public:
00039         /**
00040         * Invoked when a map entry has been inserted.
00041         *
00042         * @param vEvent  the MapEvent carrying the insert information
00043         */
00044         virtual void entryInserted(MapEvent::View vEvent) = 0;
00045 
00046         /**
00047         * Invoked when a map entry has been updated.
00048         *
00049         * @param vEvent  the MapEvent carrying the update information
00050         */
00051         virtual void entryUpdated(MapEvent::View vEvent) = 0;
00052 
00053         /**
00054         * Invoked when a map entry has been removed.
00055         *
00056         * @param vEvent  the MapEvent carrying the delete information
00057         */
00058         virtual void entryDeleted(MapEvent::View vEvent) = 0;
00059     };
00060 
00061 COH_CLOSE_NAMESPACE2
00062 
00063 #endif // COH_MAP_LISTENER_HPP
00064 
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.