Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.4.0)

E90870-01

coherence/util/Supplier.hpp

00001 /*
00002 * Supplier.hpp
00003 *
00004 * Copyright (c) 2000, 2019, 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_SUPPLIER_HPP
00017 #define COH_SUPPLIER_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 COH_OPEN_NAMESPACE2(coherence,util)
00022 
00023 /**
00024  * A Supplier provides the ability to provide a value in a deferred
00025  * fashion.
00026  *
00027  * @author rl 2019.04.29
00028  * @since 12.2.1.4
00029  */ 
00030 class COH_EXPORT Supplier
00031     : public interface_spec<Supplier>
00032     {
00033     // ----- Supplier interface ---------------------------------------------
00034 
00035     public:
00036         /**
00037          * Return the value.
00038          * 
00039          * @return the value
00040          */ 
00041         virtual Object::Holder get() const = 0;
00042 
00043         /**
00044          * Return the value.
00045          * 
00046          * @return the value
00047          */ 
00048         virtual Object::Holder get() = 0;
00049     };
00050 
00051 COH_CLOSE_NAMESPACE2
00052 
00053 #endif // COH_SUPPLIER_HPP
Copyright © 2000, 2019, Oracle and/or its affiliates. All rights reserved.