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

E47891-01

coherence/net/RequestIncompleteException.hpp

00001 /*
00002 * RequestIncompleteException.hpp
00003 *
00004 * Copyright (c) 2000, 2014, 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_REQUEST_INCOMPLETE_EXCEPTION_HPP
00017 #define COH_REQUEST_INCOMPLETE_EXCEPTION_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/io/pof/PofReader.hpp"
00022 #include "coherence/io/pof/PofWriter.hpp"
00023 #include "coherence/io/pof/PortableException.hpp"
00024 
00025 COH_OPEN_NAMESPACE2(coherence,net)
00026 
00027 using coherence::io::pof::PofReader;
00028 using coherence::io::pof::PofWriter;
00029 using coherence::io::pof::PortableException;
00030 
00031 
00032 /**
00033 * Signals that a request execution in a clustered environment failed to
00034 * complete successfully. For some specific requests this exception could
00035 * carry a partial execution result or failure information.
00036 *
00037 * @author bbc  2013.05.16
00038 * @since Coherence 12.1.3 
00039 */
00040 class COH_EXPORT RequestIncompleteException
00041     : public throwable_spec<RequestIncompleteException,
00042         extends<PortableException> >
00043     {
00044     friend class factory<RequestIncompleteException>;
00045 
00046     // ----- constructors ---------------------------------------------------
00047 
00048     protected:
00049         /**
00050         * Create a RequestIncompleteException.
00051         *
00052         * @param vsMsg   the detail message
00053         * @param vCause  the underlying cause of the exception
00054         */
00055         RequestIncompleteException(String::View vsMsg = String::null_string,
00056                 Exception::View vCause = NULL);
00057 
00058         /**
00059         * Blocked copy constructor.
00060         */
00061         RequestIncompleteException(const RequestIncompleteException&);
00062 
00063 
00064     // ----- RequestIncompleteException interface ------------------------------
00065 
00066     public:
00067         /**
00068         * Return a partial execution result that may have been assembled
00069         * prior to the timeout. The result type is usually the same as the
00070         * type of the return value for the corresponding request.
00071         *
00072         * @return a partial execution result
00073         */
00074         virtual Object::Holder getPartialResult() const;
00075 
00076         /**
00077         * Specify a partial execution result.
00078         *
00079         * @param ohPartialResult  a partial execution result
00080         */
00081         virtual void setPartialResult(Object::Holder ohPartialResult);
00082 
00083 
00084     // ----- PortableObject interface ---------------------------------------
00085 
00086     public:
00087         /**
00088         * {@inheritDoc}
00089         */
00090         virtual void readExternal(PofReader::Handle hIn);
00091 
00092         /**
00093         * {@inheritDoc}
00094         */
00095         virtual void writeExternal(PofWriter::Handle hOut) const;
00096 
00097 
00098     // ----- data members ---------------------------------------------------
00099 
00100     protected:
00101         /**
00102         * Partial execution result (optional).
00103         */
00104         FinalHolder<Object> f_ohPartialResult;
00105     };
00106 
00107 COH_CLOSE_NAMESPACE2
00108 
00109 #endif // COH_REQUEST_INCOMPLETE_EXCEPTION_HPP
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.