Oracle Coherence for C++ API
Release 3.7.1.0
E22845-01
00001 /* 00002 * AbstractInvocable.hpp 00003 * 00004 * Copyright (c) 2000, 2011, 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_ABSTRACT_INVOCABLE_HPP 00017 #define COH_ABSTRACT_INVOCABLE_HPP 00018 00019 #include "coherence/lang.ns" 00020 00021 #include "coherence/net/Invocable.hpp" 00022 #include "coherence/net/InvocationService.hpp" 00023 #include "coherence/net/PriorityTask.hpp" 00024 00025 COH_OPEN_NAMESPACE2(coherence,net) 00026 00027 00028 /** 00029 * An abstract base for Invocable implementation. 00030 * 00031 * @author mf 2008.08.26 00032 */ 00033 class COH_EXPORT AbstractInvocable 00034 : public abstract_spec<AbstractInvocable, 00035 extends<Object>, 00036 implements<Invocable> > 00037 { 00038 // ----- Invocable interface -------------------------------------------- 00039 00040 public: 00041 /** 00042 * {@inheritDoc} 00043 * 00044 * This implementation throws an UnsupportedOperationException. 00045 */ 00046 virtual void init(InvocationService::Handle hService); 00047 00048 /** 00049 * {@inheritDoc} 00050 * 00051 * This implementation throws an UnsupportedOperationException. 00052 */ 00053 virtual Object::Holder getResult() const; 00054 00055 /** 00056 * {@inheritDoc} 00057 * 00058 * This implementation throws an UnsupportedOperationException. 00059 */ 00060 virtual void run(); 00061 }; 00062 00063 COH_CLOSE_NAMESPACE2 00064 00065 #endif // COH_ABSTRACT_INVOCABLE_HPP