16#ifndef __IceGrid_Session_h__
17#define __IceGrid_Session_h__
43#ifndef ICE_IGNORE_VERSION
44# if ICE_INT_VERSION / 100 != 307
45# error Ice version mismatch!
47# if ICE_INT_VERSION % 100 >= 50
48# error Beta header file detected
50# if ICE_INT_VERSION % 100 < 11
51# error Ice patch level mismatch!
56# if defined(ICE_STATIC_LIBS)
58# elif defined(ICEGRID_API_EXPORTS)
59# define ICEGRID_API ICE_DECLSPEC_EXPORT
61# define ICEGRID_API ICE_DECLSPEC_IMPORT
65#ifdef ICE_CPP11_MAPPING
98 virtual bool ice_isA(::std::string
id, const ::Ice::Current& current)
const override;
105 virtual ::std::vector<::std::string> ice_ids(const ::Ice::Current& current)
const override;
112 virtual ::std::string ice_id(const ::Ice::Current& current)
const override;
118 static const ::std::string& ice_staticId();
126 virtual void keepAlive(const ::Ice::Current& current) = 0;
128 bool _iceD_keepAlive(::IceInternal::Incoming&, const ::Ice::Current&);
146 virtual void allocateObjectByIdAsync(::Ice::Identity
id, ::std::function<
void(const ::std::shared_ptr<::Ice::ObjectPrx>& returnValue)> response, ::std::function<
void(::std::exception_ptr)> exception, const ::Ice::Current& current) = 0;
148 bool _iceD_allocateObjectById(::IceInternal::Incoming&, const ::Ice::Current&);
163 virtual void allocateObjectByTypeAsync(::std::string type, ::std::function<
void(const ::std::shared_ptr<::Ice::ObjectPrx>& returnValue)> response, ::std::function<
void(::std::exception_ptr)> exception, const ::Ice::Current& current) = 0;
165 bool _iceD_allocateObjectByType(::IceInternal::Incoming&, const ::Ice::Current&);
179 virtual void releaseObject(::Ice::Identity
id, const ::Ice::Current& current) = 0;
181 bool _iceD_releaseObject(::IceInternal::Incoming&, const ::Ice::Current&);
192 virtual void setAllocationTimeout(
int timeout, const ::Ice::Current& current) = 0;
194 bool _iceD_setAllocationTimeout(::IceInternal::Incoming&, const ::Ice::Current&);
198 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
215class ICE_CLASS(ICEGRID_API)
SessionPrx :
public virtual ::Ice::Proxy<SessionPrx, ::Glacier2::SessionPrx>
227 _makePromiseOutgoing<void>(
true,
this, &SessionPrx::_iceI_keepAlive, context).
get();
237 template<
template<
typename>
class P = ::std::promise>
239 ->
decltype(::std::declval<P<void>>().get_future())
241 return _makePromiseOutgoing<void, P>(
false,
this, &SessionPrx::_iceI_keepAlive, context);
254 ::std::function<void()>
255 keepAliveAsync(::std::function<
void()> response,
256 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
257 ::std::function<
void(
bool)> sent =
nullptr,
260 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceGrid::SessionPrx::_iceI_keepAlive, context);
264 ICE_MEMBER(
ICEGRID_API)
void _iceI_keepAlive(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::Ice::Context&);
281 ::std::shared_ptr<::Ice::ObjectPrx> allocateObjectById(const ::Ice::Identity&
id, const ::Ice::Context& context =
::Ice::noExplicitContext)
283 return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(
true,
this, &SessionPrx::_iceI_allocateObjectById, id, context).get();
296 template<
template<
typename>
class P = ::std::promise>
298 ->
decltype(::std::declval<P<::std::shared_ptr<::Ice::ObjectPrx>>>().get_future())
300 return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>, P>(
false,
this, &SessionPrx::_iceI_allocateObjectById, id, context);
316 ::std::function<void()>
317 allocateObjectByIdAsync(const ::Ice::Identity&
id,
318 ::std::function<
void(::std::shared_ptr<::Ice::ObjectPrx>)> response,
319 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
320 ::std::function<
void(
bool)> sent =
nullptr,
323 return _makeLambdaOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(std::move(response), std::move(ex), std::move(sent),
this, &IceGrid::SessionPrx::_iceI_allocateObjectById, id, context);
327 ICE_MEMBER(
ICEGRID_API)
void _iceI_allocateObjectById(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::ObjectPrx>>>&, const ::Ice::Identity&, const ::Ice::Context&);
341 ::std::shared_ptr<::Ice::ObjectPrx> allocateObjectByType(const ::std::string& type, const ::Ice::Context& context =
::Ice::noExplicitContext)
343 return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(
true,
this, &SessionPrx::_iceI_allocateObjectByType, type, context).get();
356 template<
template<
typename>
class P = ::std::promise>
358 ->
decltype(::std::declval<P<::std::shared_ptr<::Ice::ObjectPrx>>>().get_future())
360 return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>, P>(
false,
this, &SessionPrx::_iceI_allocateObjectByType, type, context);
376 ::std::function<void()>
377 allocateObjectByTypeAsync(const ::std::string& type,
378 ::std::function<
void(::std::shared_ptr<::Ice::ObjectPrx>)> response,
379 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
380 ::std::function<
void(
bool)> sent =
nullptr,
383 return _makeLambdaOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(std::move(response), std::move(ex), std::move(sent),
this, &IceGrid::SessionPrx::_iceI_allocateObjectByType, type, context);
387 ICE_MEMBER(
ICEGRID_API)
void _iceI_allocateObjectByType(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::ObjectPrx>>>&, const ::std::string&, const ::Ice::Context&);
403 _makePromiseOutgoing<void>(
true,
this, &SessionPrx::_iceI_releaseObject,
id, context).get();
413 template<
template<
typename>
class P = ::std::promise>
415 ->
decltype(::std::declval<P<void>>().get_future())
417 return _makePromiseOutgoing<void, P>(
false,
this, &SessionPrx::_iceI_releaseObject,
id, context);
430 ::std::function<void()>
431 releaseObjectAsync(const ::Ice::Identity&
id,
432 ::std::function<
void()> response,
433 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
434 ::std::function<
void(
bool)> sent =
nullptr,
437 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceGrid::SessionPrx::_iceI_releaseObject,
id, context);
441 ICE_MEMBER(
ICEGRID_API)
void _iceI_releaseObject(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::Ice::Identity&, const ::Ice::Context&);
454 _makePromiseOutgoing<void>(
true,
this, &SessionPrx::_iceI_setAllocationTimeout, timeout, context).get();
466 template<
template<
typename>
class P = ::std::promise>
468 ->
decltype(::std::declval<P<void>>().get_future())
470 return _makePromiseOutgoing<void, P>(
false,
this, &SessionPrx::_iceI_setAllocationTimeout, timeout, context);
485 ::std::function<void()>
486 setAllocationTimeoutAsync(
int timeout,
487 ::std::function<
void()> response,
488 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
489 ::std::function<
void(
bool)> sent =
nullptr,
492 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceGrid::SessionPrx::_iceI_setAllocationTimeout, timeout, context);
496 ICE_MEMBER(
ICEGRID_API)
void _iceI_setAllocationTimeout(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&,
int, const ::Ice::Context&);
509 friend ::std::shared_ptr<SessionPrx> IceInternal::createProxy<SessionPrx>();
544ICEGRID_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< Session>&);
560typedef ::IceInternal::ProxyHandle< ::IceProxy::IceGrid::Session>
SessionPrx;
620#if defined(_MSC_VER) && (_MSC_VER >= 1900)
621# pragma warning(push)
622# pragma warning(disable:4239)
629 AMD_Session_allocateObjectById(::IceInternal::Incoming&);
631 virtual void ice_response(const ::Ice::ObjectPrx&);
634#if defined(_MSC_VER) && (_MSC_VER >= 1900)
638#if defined(_MSC_VER) && (_MSC_VER >= 1900)
639# pragma warning(push)
640# pragma warning(disable:4239)
647 AMD_Session_allocateObjectByType(::IceInternal::Incoming&);
649 virtual void ice_response(const ::Ice::ObjectPrx&);
652#if defined(_MSC_VER) && (_MSC_VER >= 1900)
724 end_keepAlive(_iceI_begin_keepAlive(context, ::IceInternal::dummyCallback, 0,
true));
736 return _iceI_begin_keepAlive(context, ::IceInternal::dummyCallback, 0);
763 return _iceI_begin_keepAlive(context, cb, cookie);
790 return _iceI_begin_keepAlive(context, cb, cookie);
801 ICE_MEMBER(
ICEGRID_API) ::
Ice::AsyncResultPtr _iceI_begin_keepAlive(const ::
Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::
Ice::LocalObjectPtr& cookie = 0, bool sync = false);
821 return end_allocateObjectById(_iceI_begin_allocateObjectById(
id, context, ::IceInternal::dummyCallback, 0,
true));
836 return _iceI_begin_allocateObjectById(
id, context, ::IceInternal::dummyCallback, 0);
869 return _iceI_begin_allocateObjectById(
id, context, cb, cookie);
902 return _iceI_begin_allocateObjectById(
id, context, cb, cookie);
918 ICE_MEMBER(
ICEGRID_API) ::
Ice::AsyncResultPtr _iceI_begin_allocateObjectById(const ::
Ice::Identity&, const ::
Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::
Ice::LocalObjectPtr& cookie = 0, bool sync = false);
935 return end_allocateObjectByType(_iceI_begin_allocateObjectByType(type, context, ::IceInternal::dummyCallback, 0,
true));
950 return _iceI_begin_allocateObjectByType(type, context, ::IceInternal::dummyCallback, 0);
983 return _iceI_begin_allocateObjectByType(type, context, cb, cookie);
1016 return _iceI_begin_allocateObjectByType(type, context, cb, cookie);
1029 ICE_MEMBER(
ICEGRID_API) ::
Ice::AsyncResultPtr _iceI_begin_allocateObjectByType(const ::std::string&, const ::
Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::
Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1046 end_releaseObject(_iceI_begin_releaseObject(
id, context, ::IceInternal::dummyCallback, 0,
true));
1058 return _iceI_begin_releaseObject(
id, context, ::IceInternal::dummyCallback, 0);
1085 return _iceI_begin_releaseObject(
id, context, cb, cookie);
1112 return _iceI_begin_releaseObject(
id, context, cb, cookie);
1128 ICE_MEMBER(
ICEGRID_API) ::
Ice::AsyncResultPtr _iceI_begin_releaseObject(const ::
Ice::Identity&, const ::
Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::
Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1142 end_setAllocationTimeout(_iceI_begin_setAllocationTimeout(timeout, context, ::IceInternal::dummyCallback, 0,
true));
1156 return _iceI_begin_setAllocationTimeout(timeout, context, ::IceInternal::dummyCallback, 0);
1187 return _iceI_begin_setAllocationTimeout(timeout, context, cb, cookie);
1218 return _iceI_begin_setAllocationTimeout(timeout, context, cb, cookie);
1229 ICE_MEMBER(
ICEGRID_API) ::
Ice::AsyncResultPtr _iceI_begin_setAllocationTimeout(::
Ice::Int, const ::
Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::
Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1270#ifdef ICE_CPP11_COMPILER
1312 bool _iceD_keepAlive(::IceInternal::Incoming&, const ::Ice::Current&);
1331 bool _iceD_allocateObjectById(::IceInternal::Incoming&, const ::Ice::Current&);
1347 bool _iceD_allocateObjectByType(::IceInternal::Incoming&, const ::Ice::Current&);
1363 bool _iceD_releaseObject(::IceInternal::Incoming&, const ::Ice::Current&);
1376 bool _iceD_setAllocationTimeout(::IceInternal::Incoming&, const ::Ice::Current&);
1380 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
1397inline bool operator<(
const Session& lhs,
const Session& rhs)
1432 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
1445template<
class T> Callback_Session_keepAlivePtr
1458template<
class T> Callback_Session_keepAlivePtr
1472template<
class T> Callback_Session_keepAlivePtr
1485template<
class T> Callback_Session_keepAlivePtr
1496template<
class T,
typename CT>
1503 typedef void (T::*
Exception)(const ::Ice::Exception& ,
const CT&);
1504 typedef void (T::*
Sent)(bool ,
const CT&);
1508 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
1522template<
class T,
typename CT> Callback_Session_keepAlivePtr
1536template<
class T,
typename CT> Callback_Session_keepAlivePtr
1551template<
class T,
typename CT> Callback_Session_keepAlivePtr
1552newCallback_Session_keepAlive(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1565template<
class T,
typename CT> Callback_Session_keepAlivePtr
1588 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
1593 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
1595 SessionPrx proxy = SessionPrx::uncheckedCast(result->getProxy());
1599 ret = proxy->end_allocateObjectById(result);
1601 catch(const ::Ice::Exception& ex)
1603 ::IceInternal::CallbackNC<T>::exception(result, ex);
1608 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
1640template<
class T> Callback_Session_allocateObjectByIdPtr
1651template<
class T,
typename CT>
1658 typedef void (T::*
Exception)(const ::Ice::Exception& ,
const CT&);
1659 typedef void (T::*
Sent)(bool ,
const CT&);
1660 typedef void (T::*
Response)(const ::Ice::ObjectPrx&,
const CT&);
1663 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
1668 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
1670 SessionPrx proxy = SessionPrx::uncheckedCast(result->getProxy());
1674 ret = proxy->end_allocateObjectById(result);
1676 catch(const ::Ice::Exception& ex)
1678 ::IceInternal::Callback<T, CT>::exception(result, ex);
1683 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
1717template<
class T,
typename CT> Callback_Session_allocateObjectByIdPtr
1740 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
1745 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
1747 SessionPrx proxy = SessionPrx::uncheckedCast(result->getProxy());
1751 ret = proxy->end_allocateObjectByType(result);
1753 catch(const ::Ice::Exception& ex)
1755 ::IceInternal::CallbackNC<T>::exception(result, ex);
1760 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
1792template<
class T> Callback_Session_allocateObjectByTypePtr
1803template<
class T,
typename CT>
1810 typedef void (T::*
Exception)(const ::Ice::Exception& ,
const CT&);
1811 typedef void (T::*
Sent)(bool ,
const CT&);
1812 typedef void (T::*
Response)(const ::Ice::ObjectPrx&,
const CT&);
1815 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
1820 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
1822 SessionPrx proxy = SessionPrx::uncheckedCast(result->getProxy());
1826 ret = proxy->end_allocateObjectByType(result);
1828 catch(const ::Ice::Exception& ex)
1830 ::IceInternal::Callback<T, CT>::exception(result, ex);
1835 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
1869template<
class T,
typename CT> Callback_Session_allocateObjectByTypePtr
1892 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
1897 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
1899 SessionPrx proxy = SessionPrx::uncheckedCast(result->getProxy());
1902 proxy->end_releaseObject(result);
1904 catch(const ::Ice::Exception& ex)
1906 ::IceInternal::CallbackNC<T>::exception(result, ex);
1911 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
1942template<
class T> Callback_Session_releaseObjectPtr
1956template<
class T> Callback_Session_releaseObjectPtr
1969template<
class T> Callback_Session_releaseObjectPtr
1980template<
class T,
typename CT>
1987 typedef void (T::*
Exception)(const ::Ice::Exception& ,
const CT&);
1988 typedef void (T::*
Sent)(bool ,
const CT&);
1992 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
1997 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
1999 SessionPrx proxy = SessionPrx::uncheckedCast(result->getProxy());
2002 proxy->end_releaseObject(result);
2004 catch(const ::Ice::Exception& ex)
2006 ::IceInternal::Callback<T, CT>::exception(result, ex);
2011 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2044template<
class T,
typename CT> Callback_Session_releaseObjectPtr
2059template<
class T,
typename CT> Callback_Session_releaseObjectPtr
2073template<
class T,
typename CT> Callback_Session_releaseObjectPtr
2096 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
2109template<
class T> Callback_Session_setAllocationTimeoutPtr
2122template<
class T> Callback_Session_setAllocationTimeoutPtr
2136template<
class T> Callback_Session_setAllocationTimeoutPtr
2149template<
class T> Callback_Session_setAllocationTimeoutPtr
2160template<
class T,
typename CT>
2167 typedef void (T::*
Exception)(const ::Ice::Exception& ,
const CT&);
2168 typedef void (T::*
Sent)(bool ,
const CT&);
2172 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
2186template<
class T,
typename CT> Callback_Session_setAllocationTimeoutPtr
2200template<
class T,
typename CT> Callback_Session_setAllocationTimeoutPtr
2215template<
class T,
typename CT> Callback_Session_setAllocationTimeoutPtr
2229template<
class T,
typename CT> Callback_Session_setAllocationTimeoutPtr
#define ICEGRID_API
Definition Descriptor.h:58
#define ICE_MEMBER(API)
Definition Config.h:177
A client-visible session object, which is tied to the lifecycle of a Router.
Definition Session.h:3104
AMD callback class for IceGrid::Session::allocateObjectById_async.
Definition Session.h:577
virtual void ice_response(const ::Ice::ObjectPrx &result)=0
Call ice_response for a successful completion.
virtual ~AMD_Session_allocateObjectById()
AMD callback class for IceGrid::Session::allocateObjectByType_async.
Definition Session.h:597
virtual ~AMD_Session_allocateObjectByType()
virtual void ice_response(const ::Ice::ObjectPrx &result)=0
Call ice_response for a successful completion.
Type-safe asynchronous callback wrapper class used for calls to IceProxy::IceGrid::Session::begin_all...
Definition Session.h:1578
void(T::* Exception)(const ::Ice::Exception &)
Definition Session.h:1583
void(T::* Sent)(bool)
Definition Session.h:1584
CallbackNC_Session_allocateObjectById(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:1587
void(T::* Response)(const ::Ice::ObjectPrx &)
Definition Session.h:1585
IceUtil::Handle< T > TPtr
Definition Session.h:1581
Type-safe asynchronous callback wrapper class used for calls to IceProxy::IceGrid::Session::begin_all...
Definition Session.h:1730
IceUtil::Handle< T > TPtr
Definition Session.h:1733
void(T::* Response)(const ::Ice::ObjectPrx &)
Definition Session.h:1737
void(T::* Exception)(const ::Ice::Exception &)
Definition Session.h:1735
CallbackNC_Session_allocateObjectByType(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:1739
void(T::* Sent)(bool)
Definition Session.h:1736
Type-safe asynchronous callback wrapper class used for calls to IceProxy::IceGrid::Session::begin_kee...
Definition Session.h:1422
void(T::* Exception)(const ::Ice::Exception &)
Definition Session.h:1427
IceUtil::Handle< T > TPtr
Definition Session.h:1425
CallbackNC_Session_keepAlive(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:1431
void(T::* Sent)(bool)
Definition Session.h:1428
void(T::* Response)()
Definition Session.h:1429
Type-safe asynchronous callback wrapper class used for calls to IceProxy::IceGrid::Session::begin_rel...
Definition Session.h:1882
void(T::* Exception)(const ::Ice::Exception &)
Definition Session.h:1887
CallbackNC_Session_releaseObject(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:1891
IceUtil::Handle< T > TPtr
Definition Session.h:1885
void(T::* Response)()
Definition Session.h:1889
void(T::* Sent)(bool)
Definition Session.h:1888
Type-safe asynchronous callback wrapper class used for calls to IceProxy::IceGrid::Session::begin_set...
Definition Session.h:2086
IceUtil::Handle< T > TPtr
Definition Session.h:2089
void(T::* Exception)(const ::Ice::Exception &)
Definition Session.h:2091
CallbackNC_Session_setAllocationTimeout(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:2095
void(T::* Sent)(bool)
Definition Session.h:2092
void(T::* Response)()
Definition Session.h:2093
Base class for asynchronous callback wrapper classes used for calls to IceProxy::IceGrid::Session::be...
Definition Session.h:677
Type-safe asynchronous callback wrapper class with cookie support used for calls to IceProxy::IceGrid...
Definition Session.h:1653
Callback_Session_allocateObjectById(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:1662
void(T::* Response)(const ::Ice::ObjectPrx &, const CT &)
Definition Session.h:1660
void(T::* Sent)(bool, const CT &)
Definition Session.h:1659
IceUtil::Handle< T > TPtr
Definition Session.h:1656
void(T::* Exception)(const ::Ice::Exception &, const CT &)
Definition Session.h:1658
Base class for asynchronous callback wrapper classes used for calls to IceProxy::IceGrid::Session::be...
Definition Session.h:685
Type-safe asynchronous callback wrapper class with cookie support used for calls to IceProxy::IceGrid...
Definition Session.h:1805
Callback_Session_allocateObjectByType(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:1814
void(T::* Response)(const ::Ice::ObjectPrx &, const CT &)
Definition Session.h:1812
IceUtil::Handle< T > TPtr
Definition Session.h:1808
void(T::* Exception)(const ::Ice::Exception &, const CT &)
Definition Session.h:1810
void(T::* Sent)(bool, const CT &)
Definition Session.h:1811
Base class for asynchronous callback wrapper classes used for calls to IceProxy::IceGrid::Session::be...
Definition Session.h:669
Type-safe asynchronous callback wrapper class with cookie support used for calls to IceProxy::IceGrid...
Definition Session.h:1498
void(T::* Exception)(const ::Ice::Exception &, const CT &)
Definition Session.h:1503
IceUtil::Handle< T > TPtr
Definition Session.h:1501
void(T::* Sent)(bool, const CT &)
Definition Session.h:1504
void(T::* Response)(const CT &)
Definition Session.h:1505
Callback_Session_keepAlive(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:1507
Base class for asynchronous callback wrapper classes used for calls to IceProxy::IceGrid::Session::be...
Definition Session.h:693
Type-safe asynchronous callback wrapper class with cookie support used for calls to IceProxy::IceGrid...
Definition Session.h:1982
void(T::* Response)(const CT &)
Definition Session.h:1989
IceUtil::Handle< T > TPtr
Definition Session.h:1985
void(T::* Exception)(const ::Ice::Exception &, const CT &)
Definition Session.h:1987
Callback_Session_releaseObject(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:1991
void(T::* Sent)(bool, const CT &)
Definition Session.h:1988
Base class for asynchronous callback wrapper classes used for calls to IceProxy::IceGrid::Session::be...
Definition Session.h:701
Type-safe asynchronous callback wrapper class with cookie support used for calls to IceProxy::IceGrid...
Definition Session.h:2162
IceUtil::Handle< T > TPtr
Definition Session.h:2165
void(T::* Exception)(const ::Ice::Exception &, const CT &)
Definition Session.h:2167
Callback_Session_setAllocationTimeout(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition Session.h:2171
void(T::* Response)(const CT &)
Definition Session.h:2169
void(T::* Sent)(bool, const CT &)
Definition Session.h:2168
A session object is used by IceGrid clients to allocate and release objects.
Definition Session.h:1262
virtual void setAllocationTimeout(::Ice::Int timeout, const ::Ice::Current ¤t=::Ice::emptyCurrent)=0
Set the allocation timeout.
virtual void keepAlive(const ::Ice::Current ¤t=::Ice::emptyCurrent)=0
Keep the session alive.
virtual void allocateObjectById_async(const ::IceGrid::AMD_Session_allocateObjectByIdPtr &cb, const ::Ice::Identity &id, const ::Ice::Current ¤t=::Ice::emptyCurrent)=0
Allocate an object.
SessionPtr PointerType
Definition Session.h:1266
virtual bool ice_isA(const ::std::string &id, const ::Ice::Current ¤t=::Ice::emptyCurrent) const
Determines whether this object supports an interface with the given Slice type ID.
virtual void releaseObject(const ::Ice::Identity &id, const ::Ice::Current ¤t=::Ice::emptyCurrent)=0
Release an object that was allocated using allocateObjectById or allocateObjectByType.
SessionPrx ProxyType
Definition Session.h:1265
virtual void allocateObjectByType_async(const ::IceGrid::AMD_Session_allocateObjectByTypePtr &cb, const ::std::string &type, const ::Ice::Current ¤t=::Ice::emptyCurrent)=0
Allocate an object with the given type.
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
virtual ::std::vector< ::std::string > ice_ids(const ::Ice::Current ¤t=::Ice::emptyCurrent) const
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
virtual const ::std::string & ice_id(const ::Ice::Current ¤t=::Ice::emptyCurrent) const
Obtains a Slice type ID representing the most-derived interface supported by this object.
::Ice::AsyncResultPtr begin_keepAlive(const ::Ice::Context &context, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Keep the session alive.
Definition Session.h:761
::Ice::AsyncResultPtr begin_releaseObject(const ::Ice::Identity &id, const ::Ice::Context &context, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Release an object that was allocated using allocateObjectById or allocateObjectByType.
Definition Session.h:1083
void releaseObject(const ::Ice::Identity &id, const ::Ice::Context &context=::Ice::noExplicitContext)
Release an object that was allocated using allocateObjectById or allocateObjectByType.
Definition Session.h:1044
::Ice::AsyncResultPtr begin_setAllocationTimeout(::Ice::Int timeout, const ::Ice::Context &context=::Ice::noExplicitContext)
Set the allocation timeout.
Definition Session.h:1154
void keepAlive(const ::Ice::Context &context=::Ice::noExplicitContext)
Keep the session alive.
Definition Session.h:722
::Ice::ObjectPrx end_allocateObjectByType(const ::Ice::AsyncResultPtr &result)
Completes an invocation of begin_allocateObjectByType.
::Ice::AsyncResultPtr begin_allocateObjectById(const ::Ice::Identity &id, const ::IceGrid::Callback_Session_allocateObjectByIdPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Allocate an object.
Definition Session.h:883
::Ice::AsyncResultPtr begin_setAllocationTimeout(::Ice::Int timeout, const ::Ice::Context &context, const ::IceGrid::Callback_Session_setAllocationTimeoutPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Set the allocation timeout.
Definition Session.h:1216
::Ice::AsyncResultPtr begin_allocateObjectById(const ::Ice::Identity &id, const ::Ice::Context &context, const ::IceGrid::Callback_Session_allocateObjectByIdPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Allocate an object.
Definition Session.h:900
::Ice::AsyncResultPtr begin_keepAlive(const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Keep the session alive.
Definition Session.h:747
::Ice::AsyncResultPtr begin_allocateObjectByType(const ::std::string &type, const ::Ice::Context &context, const ::IceGrid::Callback_Session_allocateObjectByTypePtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Allocate an object with the given type.
Definition Session.h:1014
::Ice::AsyncResultPtr begin_setAllocationTimeout(::Ice::Int timeout, const ::IceGrid::Callback_Session_setAllocationTimeoutPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Set the allocation timeout.
Definition Session.h:1200
::Ice::AsyncResultPtr begin_allocateObjectByType(const ::std::string &type, const ::Ice::Context &context, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Allocate an object with the given type.
Definition Session.h:981
::Ice::AsyncResultPtr begin_releaseObject(const ::Ice::Identity &id, const ::IceGrid::Callback_Session_releaseObjectPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Release an object that was allocated using allocateObjectById or allocateObjectByType.
Definition Session.h:1096
::Ice::ObjectPrx allocateObjectById(const ::Ice::Identity &id, const ::Ice::Context &context=::Ice::noExplicitContext)
Allocate an object.
Definition Session.h:819
::Ice::AsyncResultPtr begin_keepAlive(const ::Ice::Context &context=::Ice::noExplicitContext)
Keep the session alive.
Definition Session.h:734
::Ice::AsyncResultPtr begin_keepAlive(const ::IceGrid::Callback_Session_keepAlivePtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Keep the session alive.
Definition Session.h:774
::Ice::AsyncResultPtr begin_setAllocationTimeout(::Ice::Int timeout, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Set the allocation timeout.
Definition Session.h:1169
::Ice::AsyncResultPtr begin_allocateObjectById(const ::Ice::Identity &id, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Allocate an object.
Definition Session.h:850
void end_setAllocationTimeout(const ::Ice::AsyncResultPtr &result)
Completes an invocation of begin_setAllocationTimeout.
::Ice::AsyncResultPtr begin_releaseObject(const ::Ice::Identity &id, const ::Ice::Context &context=::Ice::noExplicitContext)
Release an object that was allocated using allocateObjectById or allocateObjectByType.
Definition Session.h:1056
::Ice::AsyncResultPtr begin_allocateObjectByType(const ::std::string &type, const ::IceGrid::Callback_Session_allocateObjectByTypePtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Allocate an object with the given type.
Definition Session.h:997
::Ice::AsyncResultPtr begin_releaseObject(const ::Ice::Identity &id, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Release an object that was allocated using allocateObjectById or allocateObjectByType.
Definition Session.h:1069
::Ice::ObjectPrx allocateObjectByType(const ::std::string &type, const ::Ice::Context &context=::Ice::noExplicitContext)
Allocate an object with the given type.
Definition Session.h:933
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this interface.
void end_releaseObject(const ::Ice::AsyncResultPtr &result)
Completes an invocation of begin_releaseObject.
::Ice::AsyncResultPtr begin_allocateObjectById(const ::Ice::Identity &id, const ::Ice::Context &context=::Ice::noExplicitContext)
Allocate an object.
Definition Session.h:834
void setAllocationTimeout(::Ice::Int timeout, const ::Ice::Context &context=::Ice::noExplicitContext)
Set the allocation timeout.
Definition Session.h:1140
::Ice::AsyncResultPtr begin_setAllocationTimeout(::Ice::Int timeout, const ::Ice::Context &context, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Set the allocation timeout.
Definition Session.h:1185
::Ice::ObjectPrx end_allocateObjectById(const ::Ice::AsyncResultPtr &result)
Completes an invocation of begin_allocateObjectById.
::Ice::AsyncResultPtr begin_keepAlive(const ::Ice::Context &context, const ::IceGrid::Callback_Session_keepAlivePtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Keep the session alive.
Definition Session.h:788
::Ice::AsyncResultPtr begin_allocateObjectByType(const ::std::string &type, const ::Ice::Context &context=::Ice::noExplicitContext)
Allocate an object with the given type.
Definition Session.h:948
::Ice::AsyncResultPtr begin_allocateObjectByType(const ::std::string &type, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Allocate an object with the given type.
Definition Session.h:964
void end_keepAlive(const ::Ice::AsyncResultPtr &result)
Completes an invocation of begin_keepAlive.
::Ice::AsyncResultPtr begin_releaseObject(const ::Ice::Identity &id, const ::Ice::Context &context, const ::IceGrid::Callback_Session_releaseObjectPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Release an object that was allocated using allocateObjectById or allocateObjectByType.
Definition Session.h:1110
::Ice::AsyncResultPtr begin_allocateObjectById(const ::Ice::Identity &id, const ::Ice::Context &context, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Allocate an object.
Definition Session.h:867
T * get() const
Definition Handle.h:25
Shared & operator=(const Shared &)
Definition Shared.h:94
Base class for generated AMD callback classes.
Definition IncomingAsync.h:20
The base class for servants.
Definition Object.h:193
Interface for output streams used to create a sequence of bytes from Slice types.
Definition OutputStream.h:28
Helper template that supplies proxy factory functions.
Definition Proxy.h:2904
::IceInternal::ProxyHandle< ::IceProxy::Glacier2::Session > SessionPrx
Definition Session.h:1520
Callback_Session_setAllocationTimeoutPtr newCallback_Session_setAllocationTimeout(const IceUtil::Handle< T > &instance, void(T::*cb)(), void(T::*excb)(const ::Ice::Exception &), void(T::*sentcb)(bool)=0)
Creates a callback wrapper instance that delegates to your object.
Definition Session.h:2110
Callback_Session_releaseObjectPtr newCallback_Session_releaseObject(const IceUtil::Handle< T > &instance, void(T::*cb)(), void(T::*excb)(const ::Ice::Exception &), void(T::*sentcb)(bool)=0)
Creates a callback wrapper instance that delegates to your object.
Definition Session.h:1930
Callback_Session_allocateObjectByIdPtr newCallback_Session_allocateObjectById(const IceUtil::Handle< T > &instance, void(T::*cb)(const ::Ice::ObjectPrx &), void(T::*excb)(const ::Ice::Exception &), void(T::*sentcb)(bool)=0)
Creates a callback wrapper instance that delegates to your object.
Definition Session.h:1627
::IceUtil::Handle< Callback_Session_keepAlive_Base > Callback_Session_keepAlivePtr
Definition Session.h:670
Callback_Session_allocateObjectByTypePtr newCallback_Session_allocateObjectByType(const IceUtil::Handle< T > &instance, void(T::*cb)(const ::Ice::ObjectPrx &), void(T::*excb)(const ::Ice::Exception &), void(T::*sentcb)(bool)=0)
Creates a callback wrapper instance that delegates to your object.
Definition Session.h:1779
::IceUtil::Handle< ::IceGrid::AMD_Session_allocateObjectByType > AMD_Session_allocateObjectByTypePtr
Definition Session.h:609
::IceUtil::Handle< Callback_Session_allocateObjectByType_Base > Callback_Session_allocateObjectByTypePtr
Definition Session.h:686
SessionPrx SessionPrxPtr
Definition Session.h:561
Callback_Session_keepAlivePtr newCallback_Session_keepAlive(const IceUtil::Handle< T > &instance, void(T::*cb)(), void(T::*excb)(const ::Ice::Exception &), void(T::*sentcb)(bool)=0)
Creates a callback wrapper instance that delegates to your object.
Definition Session.h:1446
::IceInternal::Handle< Session > SessionPtr
Definition Session.h:559
::IceUtil::Handle< Callback_Session_setAllocationTimeout_Base > Callback_Session_setAllocationTimeoutPtr
Definition Session.h:702
::IceUtil::Handle< Callback_Session_releaseObject_Base > Callback_Session_releaseObjectPtr
Definition Session.h:694
::IceUtil::Handle< Callback_Session_allocateObjectById_Base > Callback_Session_allocateObjectByIdPtr
Definition Session.h:678
::IceInternal::ProxyHandle< ::IceProxy::IceGrid::Session > SessionPrx
Definition Session.h:560
::IceUtil::Handle< ::IceGrid::AMD_Session_allocateObjectById > AMD_Session_allocateObjectByIdPtr
Definition Session.h:589
Definition BuiltinSequences.h:113
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
Definition ProxyHandle.h:51
int Int
The mapping for the Slice int type.
Definition Config.h:54
IceInternal::ProxyHandle< ::IceProxy::Ice::Object > ObjectPrx
Smart pointer for an object proxy.
Definition ProxyF.h:47
const Current emptyCurrent
A default-initialized Current instance.
IceInternal::Handle< AsyncResult > AsyncResultPtr
Definition AsyncResultF.h:18
IceUtil::Shared * upCast(::Ice::AsyncResult *)