Exemplo n.º 1
0
 public void add(ProxyOutgoingAsyncBase outAsync, int interval)
 {
     lock(this)
     {
         if(_instance == null)
         {
             throw new Ice.CommunicatorDestroyedException();
         }
         RetryTask task = new RetryTask(this, outAsync);
         outAsync.cancelable(task); // This will throw if the request is canceled.
         _instance.timer().schedule(task, interval);
         _requests.Add(task, null);
     }
 }
Exemplo n.º 2
0
        public bool sendAsyncRequest(ProxyOutgoingAsyncBase outAsync, out Ice.AsyncCallback sentCallback)
        {
            lock(this)
            {
                if(!_initialized)
                {
                    outAsync.cancelable(this); // This will throw if the request is canceled
                }

                if(!initialized())
                {
                    _requests.AddLast(outAsync);
                    sentCallback = null;
                    return false;
                }
            }
            return outAsync.invokeRemote(_connection, _compress, _response, out sentCallback);
        }
Exemplo n.º 3
0
 public bool sendAsyncRequest(ProxyOutgoingAsyncBase outAsync, out Ice.AsyncCallback sentCallback)
 {
     return outAsync.invokeRemote(_connection, _compress, _response, out sentCallback);
 }
Exemplo n.º 4
0
 public bool sendAsyncRequest(ProxyOutgoingAsyncBase outAsync, out Ice.AsyncCallback sentCallback)
 {
     return outAsync.invokeCollocated(this, out sentCallback);
 }
Exemplo n.º 5
0
        public int sendAsyncRequest(ProxyOutgoingAsyncBase outAsync)
        {
            lock(this)
            {
                if(!_initialized)
                {
                    outAsync.cancelable(this); // This will throw if the request is canceled
                }

                if(!initialized())
                {
                    _requests.AddLast(outAsync);
                    return OutgoingAsyncBase.AsyncStatusQueued;
                }
            }
            return outAsync.invokeRemote(_connection, _compress, _response);
        }
Exemplo n.º 6
0
 public int sendAsyncRequest(ProxyOutgoingAsyncBase outAsync)
 {
     return outAsync.invokeRemote(_connection, _compress, _response);
 }
Exemplo n.º 7
0
 public RetryTask(RetryQueue retryQueue, ProxyOutgoingAsyncBase outAsync)
 {
     _retryQueue = retryQueue;
     _outAsync = outAsync;
 }
Exemplo n.º 8
0
 public int sendAsyncRequest(ProxyOutgoingAsyncBase outAsync)
 {
     return outAsync.invokeCollocated(this);
 }
Exemplo n.º 9
0
 public RetryTask(Instance instance, RetryQueue retryQueue, ProxyOutgoingAsyncBase outAsync)
 {
     _instance = instance;
     _retryQueue = retryQueue;
     _outAsync = outAsync;
 }
Exemplo n.º 10
0
 public int sendAsyncRequest(ProxyOutgoingAsyncBase outAsync)
 {
     return(outAsync.invokeRemote(_connection, _compress, _response));
 }