All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Glacier2.SessionControlPrxHelper Maven / Gradle / Ivy

There is a newer version: 3.7.10
Show newest version
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
// 
//
// Generated from file `Session.ice'
//
// Warning: do not edit this file.
//
// 
//

package Glacier2;

/**
 * Provides type-specific helper functions.
 **/
public final class SessionControlPrxHelper extends Ice.ObjectPrxHelperBase implements SessionControlPrx
{
    private static final String _categories_name = "categories";

    public StringSetPrx categories()
    {
        return _iceI_categories(null, false);
    }

    public StringSetPrx categories(java.util.Map context)
    {
        return _iceI_categories(context, true);
    }

    private StringSetPrx _iceI_categories(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_categories_name);
        return end_categories(_iceI_begin_categories(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_categories()
    {
        return _iceI_begin_categories(null, false, false, null);
    }

    public Ice.AsyncResult begin_categories(java.util.Map context)
    {
        return _iceI_begin_categories(context, true, false, null);
    }

    public Ice.AsyncResult begin_categories(Ice.Callback cb)
    {
        return _iceI_begin_categories(null, false, false, cb);
    }

    public Ice.AsyncResult begin_categories(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_categories(context, true, false, cb);
    }

    public Ice.AsyncResult begin_categories(Callback_SessionControl_categories cb)
    {
        return _iceI_begin_categories(null, false, false, cb);
    }

    public Ice.AsyncResult begin_categories(java.util.Map context, Callback_SessionControl_categories cb)
    {
        return _iceI_begin_categories(context, true, false, cb);
    }

    public Ice.AsyncResult begin_categories(IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_categories(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_categories(IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_categories(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_categories(java.util.Map context,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_categories(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_categories(java.util.Map context,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_categories(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_categories(java.util.Map context,
                                                   boolean explicitCtx,
                                                   boolean synchronous,
                                                   IceInternal.Functional_GenericCallback1 responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_categories(context,
                                      explicitCtx,
                                      synchronous,
                                      new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
                                          {
                                              public final void _iceCompleted(Ice.AsyncResult result)
                                              {
                                                  SessionControlPrxHelper._iceI_categories_completed(this, result);
                                              }
                                          });
    }

    private Ice.AsyncResult _iceI_begin_categories(java.util.Map context,
                                                   boolean explicitCtx,
                                                   boolean synchronous,
                                                   IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_categories_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_categories_name, cb);
        try
        {
            result.prepare(_categories_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public StringSetPrx end_categories(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _categories_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            StringSetPrx ret_;
            ret_ = StringSetPrxHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_categories_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        Glacier2.SessionControlPrx _proxy = (Glacier2.SessionControlPrx)result.getProxy();
        StringSetPrx ret = null;
        try
        {
            ret = _proxy.end_categories(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _adapterIds_name = "adapterIds";

    public StringSetPrx adapterIds()
    {
        return _iceI_adapterIds(null, false);
    }

    public StringSetPrx adapterIds(java.util.Map context)
    {
        return _iceI_adapterIds(context, true);
    }

    private StringSetPrx _iceI_adapterIds(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_adapterIds_name);
        return end_adapterIds(_iceI_begin_adapterIds(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_adapterIds()
    {
        return _iceI_begin_adapterIds(null, false, false, null);
    }

    public Ice.AsyncResult begin_adapterIds(java.util.Map context)
    {
        return _iceI_begin_adapterIds(context, true, false, null);
    }

    public Ice.AsyncResult begin_adapterIds(Ice.Callback cb)
    {
        return _iceI_begin_adapterIds(null, false, false, cb);
    }

    public Ice.AsyncResult begin_adapterIds(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_adapterIds(context, true, false, cb);
    }

    public Ice.AsyncResult begin_adapterIds(Callback_SessionControl_adapterIds cb)
    {
        return _iceI_begin_adapterIds(null, false, false, cb);
    }

    public Ice.AsyncResult begin_adapterIds(java.util.Map context, Callback_SessionControl_adapterIds cb)
    {
        return _iceI_begin_adapterIds(context, true, false, cb);
    }

    public Ice.AsyncResult begin_adapterIds(IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_adapterIds(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_adapterIds(IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterIds(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_adapterIds(java.util.Map context,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_adapterIds(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_adapterIds(java.util.Map context,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterIds(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_adapterIds(java.util.Map context,
                                                   boolean explicitCtx,
                                                   boolean synchronous,
                                                   IceInternal.Functional_GenericCallback1 responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterIds(context,
                                      explicitCtx,
                                      synchronous,
                                      new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
                                          {
                                              public final void _iceCompleted(Ice.AsyncResult result)
                                              {
                                                  SessionControlPrxHelper._iceI_adapterIds_completed(this, result);
                                              }
                                          });
    }

    private Ice.AsyncResult _iceI_begin_adapterIds(java.util.Map context,
                                                   boolean explicitCtx,
                                                   boolean synchronous,
                                                   IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_adapterIds_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_adapterIds_name, cb);
        try
        {
            result.prepare(_adapterIds_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public StringSetPrx end_adapterIds(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _adapterIds_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            StringSetPrx ret_;
            ret_ = StringSetPrxHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_adapterIds_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        Glacier2.SessionControlPrx _proxy = (Glacier2.SessionControlPrx)result.getProxy();
        StringSetPrx ret = null;
        try
        {
            ret = _proxy.end_adapterIds(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _identities_name = "identities";

    public IdentitySetPrx identities()
    {
        return _iceI_identities(null, false);
    }

    public IdentitySetPrx identities(java.util.Map context)
    {
        return _iceI_identities(context, true);
    }

    private IdentitySetPrx _iceI_identities(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_identities_name);
        return end_identities(_iceI_begin_identities(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_identities()
    {
        return _iceI_begin_identities(null, false, false, null);
    }

    public Ice.AsyncResult begin_identities(java.util.Map context)
    {
        return _iceI_begin_identities(context, true, false, null);
    }

    public Ice.AsyncResult begin_identities(Ice.Callback cb)
    {
        return _iceI_begin_identities(null, false, false, cb);
    }

    public Ice.AsyncResult begin_identities(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_identities(context, true, false, cb);
    }

    public Ice.AsyncResult begin_identities(Callback_SessionControl_identities cb)
    {
        return _iceI_begin_identities(null, false, false, cb);
    }

    public Ice.AsyncResult begin_identities(java.util.Map context, Callback_SessionControl_identities cb)
    {
        return _iceI_begin_identities(context, true, false, cb);
    }

    public Ice.AsyncResult begin_identities(IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_identities(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_identities(IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_identities(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_identities(java.util.Map context,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_identities(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_identities(java.util.Map context,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_identities(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_identities(java.util.Map context,
                                                   boolean explicitCtx,
                                                   boolean synchronous,
                                                   IceInternal.Functional_GenericCallback1 responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_identities(context,
                                      explicitCtx,
                                      synchronous,
                                      new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
                                          {
                                              public final void _iceCompleted(Ice.AsyncResult result)
                                              {
                                                  SessionControlPrxHelper._iceI_identities_completed(this, result);
                                              }
                                          });
    }

    private Ice.AsyncResult _iceI_begin_identities(java.util.Map context,
                                                   boolean explicitCtx,
                                                   boolean synchronous,
                                                   IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_identities_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_identities_name, cb);
        try
        {
            result.prepare(_identities_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public IdentitySetPrx end_identities(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _identities_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            IdentitySetPrx ret_;
            ret_ = IdentitySetPrxHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_identities_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        Glacier2.SessionControlPrx _proxy = (Glacier2.SessionControlPrx)result.getProxy();
        IdentitySetPrx ret = null;
        try
        {
            ret = _proxy.end_identities(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getSessionTimeout_name = "getSessionTimeout";

    public int getSessionTimeout()
    {
        return _iceI_getSessionTimeout(null, false);
    }

    public int getSessionTimeout(java.util.Map context)
    {
        return _iceI_getSessionTimeout(context, true);
    }

    private int _iceI_getSessionTimeout(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getSessionTimeout_name);
        return end_getSessionTimeout(_iceI_begin_getSessionTimeout(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getSessionTimeout()
    {
        return _iceI_begin_getSessionTimeout(null, false, false, null);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, null);
    }

    public Ice.AsyncResult begin_getSessionTimeout(Ice.Callback cb)
    {
        return _iceI_begin_getSessionTimeout(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(Callback_SessionControl_getSessionTimeout cb)
    {
        return _iceI_begin_getSessionTimeout(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context, Callback_SessionControl_getSessionTimeout cb)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(IceInternal.Functional_IntCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getSessionTimeout(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getSessionTimeout(IceInternal.Functional_IntCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getSessionTimeout(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context,
                                                   IceInternal.Functional_IntCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context,
                                                   IceInternal.Functional_IntCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getSessionTimeout(java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.Functional_IntCallback responseCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getSessionTimeout(context,
                                             explicitCtx,
                                             synchronous,
                                             new IceInternal.Functional_TwowayCallbackInt(responseCb, exceptionCb, sentCb)
                                                 {
                                                     public final void _iceCompleted(Ice.AsyncResult result)
                                                     {
                                                         SessionControlPrxHelper._iceI_getSessionTimeout_completed(this, result);
                                                     }
                                                 });
    }

    private Ice.AsyncResult _iceI_begin_getSessionTimeout(java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getSessionTimeout_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getSessionTimeout_name, cb);
        try
        {
            result.prepare(_getSessionTimeout_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public int end_getSessionTimeout(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getSessionTimeout_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            int ret_;
            ret_ = istr_.readInt();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getSessionTimeout_completed(Ice.TwowayCallbackInt cb, Ice.AsyncResult result)
    {
        Glacier2.SessionControlPrx _proxy = (Glacier2.SessionControlPrx)result.getProxy();
        int ret = 0;
        try
        {
            ret = _proxy.end_getSessionTimeout(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _destroy_name = "destroy";

    public void destroy()
    {
        _iceI_destroy(null, false);
    }

    public void destroy(java.util.Map context)
    {
        _iceI_destroy(context, true);
    }

    private void _iceI_destroy(java.util.Map context, boolean explicitCtx)
    {
        end_destroy(_iceI_begin_destroy(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_destroy()
    {
        return _iceI_begin_destroy(null, false, false, null);
    }

    public Ice.AsyncResult begin_destroy(java.util.Map context)
    {
        return _iceI_begin_destroy(context, true, false, null);
    }

    public Ice.AsyncResult begin_destroy(Ice.Callback cb)
    {
        return _iceI_begin_destroy(null, false, false, cb);
    }

    public Ice.AsyncResult begin_destroy(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_destroy(context, true, false, cb);
    }

    public Ice.AsyncResult begin_destroy(Callback_SessionControl_destroy cb)
    {
        return _iceI_begin_destroy(null, false, false, cb);
    }

    public Ice.AsyncResult begin_destroy(java.util.Map context, Callback_SessionControl_destroy cb)
    {
        return _iceI_begin_destroy(context, true, false, cb);
    }

    public Ice.AsyncResult begin_destroy(IceInternal.Functional_VoidCallback responseCb,
                                         IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_destroy(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_destroy(IceInternal.Functional_VoidCallback responseCb,
                                         IceInternal.Functional_GenericCallback1 exceptionCb,
                                         IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_destroy(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_destroy(java.util.Map context,
                                         IceInternal.Functional_VoidCallback responseCb,
                                         IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_destroy(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_destroy(java.util.Map context,
                                         IceInternal.Functional_VoidCallback responseCb,
                                         IceInternal.Functional_GenericCallback1 exceptionCb,
                                         IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_destroy(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_destroy(java.util.Map context,
                                                boolean explicitCtx,
                                                boolean synchronous,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_destroy(context,
                                   explicitCtx,
                                   synchronous,
                                   new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

    private Ice.AsyncResult _iceI_begin_destroy(java.util.Map context,
                                                boolean explicitCtx,
                                                boolean synchronous,
                                                IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_destroy_name, cb);
        try
        {
            result.prepare(_destroy_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_destroy(Ice.AsyncResult iresult)
    {
        _end(iresult, _destroy_name);
    }

    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static SessionControlPrx checkedCast(Ice.ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), SessionControlPrx.class, SessionControlPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static SessionControlPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), SessionControlPrx.class, SessionControlPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static SessionControlPrx checkedCast(Ice.ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), SessionControlPrx.class, SessionControlPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static SessionControlPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), SessionControlPrx.class, SessionControlPrxHelper.class);
    }

    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @return A proxy for this type.
     **/
    public static SessionControlPrx uncheckedCast(Ice.ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, SessionControlPrx.class, SessionControlPrxHelper.class);
    }

    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type.
     **/
    public static SessionControlPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, SessionControlPrx.class, SessionControlPrxHelper.class);
    }

    private static final String[] _ids =
    {
        "::Glacier2::SessionControl",
        "::Ice::Object"
    };

    /**
     * Provides the Slice type ID of this type.
     * @return The Slice type ID.
     **/
    public static String ice_staticId()
    {
        return _ids[0];
    }

    public static void write(Ice.OutputStream ostr, SessionControlPrx v)
    {
        ostr.writeProxy(v);
    }

    public static SessionControlPrx read(Ice.InputStream istr)
    {
        Ice.ObjectPrx proxy = istr.readProxy();
        if(proxy != null)
        {
            SessionControlPrxHelper result = new SessionControlPrxHelper();
            result._copyFrom(proxy);
            return result;
        }
        return null;
    }

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy