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

IceStorm.TopicPrxHelper Maven / Gradle / Ivy

There is a newer version: 3.7.10
Show newest version
// **********************************************************************
//
// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.7.1
//
// 
//
// Generated from file `IceStorm.ice'
//
// Warning: do not edit this file.
//
// 
//

package IceStorm;

/**
 * Provides type-specific helper functions.
 **/
public final class TopicPrxHelper extends Ice.ObjectPrxHelperBase implements TopicPrx
{
    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_Topic_destroy cb)
    {
        return _iceI_begin_destroy(null, false, false, cb);
    }

    public Ice.AsyncResult begin_destroy(java.util.Map context, Callback_Topic_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);
    }

    private static final String _getLinkInfoSeq_name = "getLinkInfoSeq";

    public LinkInfo[] getLinkInfoSeq()
    {
        return _iceI_getLinkInfoSeq(null, false);
    }

    public LinkInfo[] getLinkInfoSeq(java.util.Map context)
    {
        return _iceI_getLinkInfoSeq(context, true);
    }

    private LinkInfo[] _iceI_getLinkInfoSeq(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getLinkInfoSeq_name);
        return end_getLinkInfoSeq(_iceI_begin_getLinkInfoSeq(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getLinkInfoSeq()
    {
        return _iceI_begin_getLinkInfoSeq(null, false, false, null);
    }

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

    public Ice.AsyncResult begin_getLinkInfoSeq(Ice.Callback cb)
    {
        return _iceI_begin_getLinkInfoSeq(null, false, false, cb);
    }

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

    public Ice.AsyncResult begin_getLinkInfoSeq(Callback_Topic_getLinkInfoSeq cb)
    {
        return _iceI_begin_getLinkInfoSeq(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getLinkInfoSeq(java.util.Map context, Callback_Topic_getLinkInfoSeq cb)
    {
        return _iceI_begin_getLinkInfoSeq(context, true, false, cb);
    }

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

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

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

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

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

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

    public LinkInfo[] end_getLinkInfoSeq(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getLinkInfoSeq_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();
            LinkInfo[] ret_;
            ret_ = LinkInfoSeqHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getLinkInfoSeq_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        IceStorm.TopicPrx _proxy = (IceStorm.TopicPrx)result.getProxy();
        LinkInfo[] ret = null;
        try
        {
            ret = _proxy.end_getLinkInfoSeq(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getName_name = "getName";

    public String getName()
    {
        return _iceI_getName(null, false);
    }

    public String getName(java.util.Map context)
    {
        return _iceI_getName(context, true);
    }

    private String _iceI_getName(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getName_name);
        return end_getName(_iceI_begin_getName(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getName()
    {
        return _iceI_begin_getName(null, false, false, null);
    }

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

    public Ice.AsyncResult begin_getName(Ice.Callback cb)
    {
        return _iceI_begin_getName(null, false, false, cb);
    }

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

    public Ice.AsyncResult begin_getName(Callback_Topic_getName cb)
    {
        return _iceI_begin_getName(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getName(java.util.Map context, Callback_Topic_getName cb)
    {
        return _iceI_begin_getName(context, true, false, cb);
    }

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

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

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

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

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

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

    public String end_getName(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getName_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();
            String ret_;
            ret_ = istr_.readString();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getName_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        IceStorm.TopicPrx _proxy = (IceStorm.TopicPrx)result.getProxy();
        String ret = null;
        try
        {
            ret = _proxy.end_getName(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getNonReplicatedPublisher_name = "getNonReplicatedPublisher";

    public Ice.ObjectPrx getNonReplicatedPublisher()
    {
        return _iceI_getNonReplicatedPublisher(null, false);
    }

    public Ice.ObjectPrx getNonReplicatedPublisher(java.util.Map context)
    {
        return _iceI_getNonReplicatedPublisher(context, true);
    }

    private Ice.ObjectPrx _iceI_getNonReplicatedPublisher(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getNonReplicatedPublisher_name);
        return end_getNonReplicatedPublisher(_iceI_begin_getNonReplicatedPublisher(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getNonReplicatedPublisher()
    {
        return _iceI_begin_getNonReplicatedPublisher(null, false, false, null);
    }

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

    public Ice.AsyncResult begin_getNonReplicatedPublisher(Ice.Callback cb)
    {
        return _iceI_begin_getNonReplicatedPublisher(null, false, false, cb);
    }

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

    public Ice.AsyncResult begin_getNonReplicatedPublisher(Callback_Topic_getNonReplicatedPublisher cb)
    {
        return _iceI_begin_getNonReplicatedPublisher(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getNonReplicatedPublisher(java.util.Map context, Callback_Topic_getNonReplicatedPublisher cb)
    {
        return _iceI_begin_getNonReplicatedPublisher(context, true, false, cb);
    }

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

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

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

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

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

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

    public Ice.ObjectPrx end_getNonReplicatedPublisher(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getNonReplicatedPublisher_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();
            Ice.ObjectPrx ret_;
            ret_ = istr_.readProxy();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getNonReplicatedPublisher_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        IceStorm.TopicPrx _proxy = (IceStorm.TopicPrx)result.getProxy();
        Ice.ObjectPrx ret = null;
        try
        {
            ret = _proxy.end_getNonReplicatedPublisher(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getPublisher_name = "getPublisher";

    public Ice.ObjectPrx getPublisher()
    {
        return _iceI_getPublisher(null, false);
    }

    public Ice.ObjectPrx getPublisher(java.util.Map context)
    {
        return _iceI_getPublisher(context, true);
    }

    private Ice.ObjectPrx _iceI_getPublisher(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getPublisher_name);
        return end_getPublisher(_iceI_begin_getPublisher(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getPublisher()
    {
        return _iceI_begin_getPublisher(null, false, false, null);
    }

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

    public Ice.AsyncResult begin_getPublisher(Ice.Callback cb)
    {
        return _iceI_begin_getPublisher(null, false, false, cb);
    }

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

    public Ice.AsyncResult begin_getPublisher(Callback_Topic_getPublisher cb)
    {
        return _iceI_begin_getPublisher(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getPublisher(java.util.Map context, Callback_Topic_getPublisher cb)
    {
        return _iceI_begin_getPublisher(context, true, false, cb);
    }

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

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

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

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

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

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

    public Ice.ObjectPrx end_getPublisher(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getPublisher_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();
            Ice.ObjectPrx ret_;
            ret_ = istr_.readProxy();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getPublisher_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        IceStorm.TopicPrx _proxy = (IceStorm.TopicPrx)result.getProxy();
        Ice.ObjectPrx ret = null;
        try
        {
            ret = _proxy.end_getPublisher(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getSubscribers_name = "getSubscribers";

    public Ice.Identity[] getSubscribers()
    {
        return _iceI_getSubscribers(null, false);
    }

    public Ice.Identity[] getSubscribers(java.util.Map context)
    {
        return _iceI_getSubscribers(context, true);
    }

    private Ice.Identity[] _iceI_getSubscribers(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getSubscribers_name);
        return end_getSubscribers(_iceI_begin_getSubscribers(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getSubscribers()
    {
        return _iceI_begin_getSubscribers(null, false, false, null);
    }

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

    public Ice.AsyncResult begin_getSubscribers(Ice.Callback cb)
    {
        return _iceI_begin_getSubscribers(null, false, false, cb);
    }

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

    public Ice.AsyncResult begin_getSubscribers(Callback_Topic_getSubscribers cb)
    {
        return _iceI_begin_getSubscribers(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getSubscribers(java.util.Map context, Callback_Topic_getSubscribers cb)
    {
        return _iceI_begin_getSubscribers(context, true, false, cb);
    }

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

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

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

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

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

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

    public Ice.Identity[] end_getSubscribers(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getSubscribers_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();
            Ice.Identity[] ret_;
            ret_ = Ice.IdentitySeqHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getSubscribers_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        IceStorm.TopicPrx _proxy = (IceStorm.TopicPrx)result.getProxy();
        Ice.Identity[] ret = null;
        try
        {
            ret = _proxy.end_getSubscribers(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _link_name = "link";

    public void link(TopicPrx linkTo, int cost)
        throws LinkExists
    {
        _iceI_link(linkTo, cost, null, false);
    }

    public void link(TopicPrx linkTo, int cost, java.util.Map context)
        throws LinkExists
    {
        _iceI_link(linkTo, cost, context, true);
    }

    private void _iceI_link(TopicPrx iceP_linkTo, int iceP_cost, java.util.Map context, boolean explicitCtx)
        throws LinkExists
    {
        _checkTwowayOnly(_link_name);
        end_link(_iceI_begin_link(iceP_linkTo, iceP_cost, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo, int cost)
    {
        return _iceI_begin_link(linkTo, cost, null, false, false, null);
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo, int cost, java.util.Map context)
    {
        return _iceI_begin_link(linkTo, cost, context, true, false, null);
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo, int cost, Ice.Callback cb)
    {
        return _iceI_begin_link(linkTo, cost, null, false, false, cb);
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo, int cost, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_link(linkTo, cost, context, true, false, cb);
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo, int cost, Callback_Topic_link cb)
    {
        return _iceI_begin_link(linkTo, cost, null, false, false, cb);
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo, int cost, java.util.Map context, Callback_Topic_link cb)
    {
        return _iceI_begin_link(linkTo, cost, context, true, false, cb);
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo,
                                      int cost,
                                      IceInternal.Functional_VoidCallback responseCb,
                                      IceInternal.Functional_GenericCallback1 userExceptionCb,
                                      IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_link(linkTo, cost, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo,
                                      int cost,
                                      IceInternal.Functional_VoidCallback responseCb,
                                      IceInternal.Functional_GenericCallback1 userExceptionCb,
                                      IceInternal.Functional_GenericCallback1 exceptionCb,
                                      IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_link(linkTo, cost, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo,
                                      int cost,
                                      java.util.Map context,
                                      IceInternal.Functional_VoidCallback responseCb,
                                      IceInternal.Functional_GenericCallback1 userExceptionCb,
                                      IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_link(linkTo, cost, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_link(TopicPrx linkTo,
                                      int cost,
                                      java.util.Map context,
                                      IceInternal.Functional_VoidCallback responseCb,
                                      IceInternal.Functional_GenericCallback1 userExceptionCb,
                                      IceInternal.Functional_GenericCallback1 exceptionCb,
                                      IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_link(linkTo, cost, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_link(TopicPrx iceP_linkTo,
                                             int iceP_cost,
                                             java.util.Map context,
                                             boolean explicitCtx,
                                             boolean synchronous,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 userExceptionCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_link(iceP_linkTo,
                                iceP_cost,
                                context,
                                explicitCtx,
                                synchronous,
                                new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                    {
                                        public final void _iceCompleted(Ice.AsyncResult result)
                                        {
                                            TopicPrxHelper._iceI_link_completed(this, result);
                                        }
                                    });
    }

    private Ice.AsyncResult _iceI_begin_link(TopicPrx iceP_linkTo,
                                             int iceP_cost,
                                             java.util.Map context,
                                             boolean explicitCtx,
                                             boolean synchronous,
                                             IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_link_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_link_name, cb);
        try
        {
            result.prepare(_link_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            TopicPrxHelper.write(ostr, iceP_linkTo);
            ostr.writeInt(iceP_cost);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_link(Ice.AsyncResult iresult)
        throws LinkExists
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _link_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(LinkExists ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_link_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        IceStorm.TopicPrx _proxy = (IceStorm.TopicPrx)result.getProxy();
        try
        {
            _proxy.end_link(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _subscribeAndGetPublisher_name = "subscribeAndGetPublisher";

    public Ice.ObjectPrx subscribeAndGetPublisher(java.util.Map theQoS, Ice.ObjectPrx subscriber)
        throws AlreadySubscribed,
               BadQoS,
               InvalidSubscriber
    {
        return _iceI_subscribeAndGetPublisher(theQoS, subscriber, null, false);
    }

    public Ice.ObjectPrx subscribeAndGetPublisher(java.util.Map theQoS, Ice.ObjectPrx subscriber, java.util.Map context)
        throws AlreadySubscribed,
               BadQoS,
               InvalidSubscriber
    {
        return _iceI_subscribeAndGetPublisher(theQoS, subscriber, context, true);
    }

    private Ice.ObjectPrx _iceI_subscribeAndGetPublisher(java.util.Map iceP_theQoS, Ice.ObjectPrx iceP_subscriber, java.util.Map context, boolean explicitCtx)
        throws AlreadySubscribed,
               BadQoS,
               InvalidSubscriber
    {
        _checkTwowayOnly(_subscribeAndGetPublisher_name);
        return end_subscribeAndGetPublisher(_iceI_begin_subscribeAndGetPublisher(iceP_theQoS, iceP_subscriber, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS, Ice.ObjectPrx subscriber)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, null, false, false, null);
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS, Ice.ObjectPrx subscriber, java.util.Map context)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, context, true, false, null);
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS, Ice.ObjectPrx subscriber, Ice.Callback cb)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, null, false, false, cb);
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS, Ice.ObjectPrx subscriber, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, context, true, false, cb);
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS, Ice.ObjectPrx subscriber, Callback_Topic_subscribeAndGetPublisher cb)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, null, false, false, cb);
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS, Ice.ObjectPrx subscriber, java.util.Map context, Callback_Topic_subscribeAndGetPublisher cb)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, context, true, false, cb);
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS,
                                                          Ice.ObjectPrx subscriber,
                                                          IceInternal.Functional_GenericCallback1 responseCb,
                                                          IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS,
                                                          Ice.ObjectPrx subscriber,
                                                          IceInternal.Functional_GenericCallback1 responseCb,
                                                          IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS,
                                                          Ice.ObjectPrx subscriber,
                                                          java.util.Map context,
                                                          IceInternal.Functional_GenericCallback1 responseCb,
                                                          IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_subscribeAndGetPublisher(java.util.Map theQoS,
                                                          Ice.ObjectPrx subscriber,
                                                          java.util.Map context,
                                                          IceInternal.Functional_GenericCallback1 responseCb,
                                                          IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_subscribeAndGetPublisher(theQoS, subscriber, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_subscribeAndGetPublisher(java.util.Map iceP_theQoS,
                                                                 Ice.ObjectPrx iceP_subscriber,
                                                                 java.util.Map context,
                                                                 boolean explicitCtx,
                                                                 boolean synchronous,
                                                                 IceInternal.Functional_GenericCallback1 responseCb,
                                                                 IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                                 IceInternal.Functional_GenericCallback1 exceptionCb,
                                                                 IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_subscribeAndGetPublisher(iceP_theQoS,
                                                    iceP_subscriber,
                                                    context,
                                                    explicitCtx,
                                                    synchronous,
                                                    new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                        {
                                                            public final void _iceCompleted(Ice.AsyncResult result)
                                                            {
                                                                TopicPrxHelper._iceI_subscribeAndGetPublisher_completed(this, result);
                                                            }
                                                        });
    }

    private Ice.AsyncResult _iceI_begin_subscribeAndGetPublisher(java.util.Map iceP_theQoS,
                                                                 Ice.ObjectPrx iceP_subscriber,
                                                                 java.util.Map context,
                                                                 boolean explicitCtx,
                                                                 boolean synchronous,
                                                                 IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_subscribeAndGetPublisher_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_subscribeAndGetPublisher_name, cb);
        try
        {
            result.prepare(_subscribeAndGetPublisher_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            QoSHelper.write(ostr, iceP_theQoS);
            ostr.writeProxy(iceP_subscriber);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public Ice.ObjectPrx end_subscribeAndGetPublisher(Ice.AsyncResult iresult)
        throws AlreadySubscribed,
               BadQoS,
               InvalidSubscriber
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _subscribeAndGetPublisher_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(AlreadySubscribed ex_)
                {
                    throw ex_;
                }
                catch(BadQoS ex_)
                {
                    throw ex_;
                }
                catch(InvalidSubscriber ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            Ice.ObjectPrx ret_;
            ret_ = istr_.readProxy();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_subscribeAndGetPublisher_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
    {
        IceStorm.TopicPrx _proxy = (IceStorm.TopicPrx)result.getProxy();
        Ice.ObjectPrx ret = null;
        try
        {
            ret = _proxy.end_subscribeAndGetPublisher(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _unlink_name = "unlink";

    public void unlink(TopicPrx linkTo)
        throws NoSuchLink
    {
        _iceI_unlink(linkTo, null, false);
    }

    public void unlink(TopicPrx linkTo, java.util.Map context)
        throws NoSuchLink
    {
        _iceI_unlink(linkTo, context, true);
    }

    private void _iceI_unlink(TopicPrx iceP_linkTo, java.util.Map context, boolean explicitCtx)
        throws NoSuchLink
    {
        _checkTwowayOnly(_unlink_name);
        end_unlink(_iceI_begin_unlink(iceP_linkTo, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo)
    {
        return _iceI_begin_unlink(linkTo, null, false, false, null);
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo, java.util.Map context)
    {
        return _iceI_begin_unlink(linkTo, context, true, false, null);
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo, Ice.Callback cb)
    {
        return _iceI_begin_unlink(linkTo, null, false, false, cb);
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_unlink(linkTo, context, true, false, cb);
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo, Callback_Topic_unlink cb)
    {
        return _iceI_begin_unlink(linkTo, null, false, false, cb);
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo, java.util.Map context, Callback_Topic_unlink cb)
    {
        return _iceI_begin_unlink(linkTo, context, true, false, cb);
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo,
                                        IceInternal.Functional_VoidCallback responseCb,
                                        IceInternal.Functional_GenericCallback1 userExceptionCb,
                                        IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_unlink(linkTo, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo,
                                        IceInternal.Functional_VoidCallback responseCb,
                                        IceInternal.Functional_GenericCallback1 userExceptionCb,
                                        IceInternal.Functional_GenericCallback1 exceptionCb,
                                        IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_unlink(linkTo, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo,
                                        java.util.Map context,
                                        IceInternal.Functional_VoidCallback responseCb,
                                        IceInternal.Functional_GenericCallback1 userExceptionCb,
                                        IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_unlink(linkTo, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_unlink(TopicPrx linkTo,
                                        java.util.Map context,
                                        IceInternal.Functional_VoidCallback responseCb,
                                        IceInternal.Functional_GenericCallback1 userExceptionCb,
                                        IceInternal.Functional_GenericCallback1 exceptionCb,
                                        IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_unlink(linkTo, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_unlink(TopicPrx iceP_linkTo,
                                               java.util.Map context,
                                               boolean explicitCtx,
                                               boolean synchronous,
                                               IceInternal.Functional_VoidCallback responseCb,
                                               IceInternal.Functional_GenericCallback1 userExceptionCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb,
                                               IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_unlink(iceP_linkTo,
                                  context,
                                  explicitCtx,
                                  synchronous,
                                  new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                      {
                                          public final void _iceCompleted(Ice.AsyncResult result)
                                          {
                                              TopicPrxHelper._iceI_unlink_completed(this, result);
                                          }
                                      });
    }

    private Ice.AsyncResult _iceI_begin_unlink(TopicPrx iceP_linkTo,
                                               java.util.Map context,
                                               boolean explicitCtx,
                                               boolean synchronous,
                                               IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_unlink_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_unlink_name, cb);
        try
        {
            result.prepare(_unlink_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            TopicPrxHelper.write(ostr, iceP_linkTo);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_unlink(Ice.AsyncResult iresult)
        throws NoSuchLink
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _unlink_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(NoSuchLink ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_unlink_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        IceStorm.TopicPrx _proxy = (IceStorm.TopicPrx)result.getProxy();
        try
        {
            _proxy.end_unlink(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _unsubscribe_name = "unsubscribe";

    public void unsubscribe(Ice.ObjectPrx subscriber)
    {
        _iceI_unsubscribe(subscriber, null, false);
    }

    public void unsubscribe(Ice.ObjectPrx subscriber, java.util.Map context)
    {
        _iceI_unsubscribe(subscriber, context, true);
    }

    private void _iceI_unsubscribe(Ice.ObjectPrx iceP_subscriber, java.util.Map context, boolean explicitCtx)
    {
        end_unsubscribe(_iceI_begin_unsubscribe(iceP_subscriber, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_unsubscribe(Ice.ObjectPrx subscriber)
    {
        return _iceI_begin_unsubscribe(subscriber, null, false, false, null);
    }

    public Ice.AsyncResult begin_unsubscribe(Ice.ObjectPrx subscriber, java.util.Map context)
    {
        return _iceI_begin_unsubscribe(subscriber, context, true, false, null);
    }

    public Ice.AsyncResult begin_unsubscribe(Ice.ObjectPrx subscriber, Ice.Callback cb)
    {
        return _iceI_begin_unsubscribe(subscriber, null, false, false, cb);
    }

    public Ice.AsyncResult begin_unsubscribe(Ice.ObjectPrx subscriber, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_unsubscribe(subscriber, context, true, false, cb);
    }

    public Ice.AsyncResult begin_unsubscribe(Ice.ObjectPrx subscriber, Callback_Topic_unsubscribe cb)
    {
        return _iceI_begin_unsubscribe(subscriber, null, false, false, cb);
    }

    public Ice.AsyncResult begin_unsubscribe(Ice.ObjectPrx subscriber, java.util.Map context, Callback_Topic_unsubscribe cb)
    {
        return _iceI_begin_unsubscribe(subscriber, context, true, false, cb);
    }

    public Ice.AsyncResult begin_unsubscribe(Ice.ObjectPrx subscriber,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_unsubscribe(subscriber, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_unsubscribe(Ice.ObjectPrx subscriber,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_unsubscribe(subscriber, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_unsubscribe(Ice.ObjectPrx subscriber,
                                             java.util.Map context,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_unsubscribe(subscriber, context, true, false, responseCb, exceptionCb, null);
    }

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

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

    private Ice.AsyncResult _iceI_begin_unsubscribe(Ice.ObjectPrx iceP_subscriber,
                                                    java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_unsubscribe_name, cb);
        try
        {
            result.prepare(_unsubscribe_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            ostr.writeProxy(iceP_subscriber);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_unsubscribe(Ice.AsyncResult iresult)
    {
        _end(iresult, _unsubscribe_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 TopicPrx checkedCast(Ice.ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), TopicPrx.class, TopicPrxHelper.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 TopicPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), TopicPrx.class, TopicPrxHelper.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 TopicPrx checkedCast(Ice.ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), TopicPrx.class, TopicPrxHelper.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 TopicPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), TopicPrx.class, TopicPrxHelper.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 TopicPrx uncheckedCast(Ice.ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, TopicPrx.class, TopicPrxHelper.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 TopicPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, TopicPrx.class, TopicPrxHelper.class);
    }

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

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

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

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy