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

F79659-03

coherence/util/AbstractMapListener.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_ABSTRACT_MAP_LISTENER_HPP
00008 #define COH_ABSTRACT_MAP_LISTENER_HPP
00009 
00010 #include "coherence/lang.ns"
00011 
00012 #include "coherence/util/MapEvent.hpp"
00013 #include "coherence/util/MapListener.hpp"
00014 
00015 COH_OPEN_NAMESPACE2(coherence,util)
00016 
00017 
00018 /**
00019 * A base class that simplifies the implementation of a MapListener,
00020 * particularly inner classes that only implement one or two of the
00021 * three event methods.
00022 *
00023 * @author tb 2008.06.16
00024 */
00025 class COH_EXPORT AbstractMapListener
00026     : public abstract_spec<AbstractMapListener,
00027         extends<Object>,
00028         implements<MapListener> >
00029     {
00030     // ----- MapListener interface ------------------------------------------
00031 
00032     public:
00033         /**
00034         * {@inheritDoc}
00035         */
00036         virtual void entryInserted(MapEvent::View vEvent);
00037 
00038         /**
00039         * {@inheritDoc}
00040         */
00041         virtual void entryUpdated(MapEvent::View vEvent);
00042 
00043         /**
00044         * {@inheritDoc}
00045         */
00046         virtual void entryDeleted(MapEvent::View vEvent);
00047     };
00048 
00049 COH_CLOSE_NAMESPACE2
00050 
00051 #endif // COH_ABSTRACT_MAP_LISTENER_HPP
00052 
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.