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); } }
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); }
public bool sendAsyncRequest(ProxyOutgoingAsyncBase outAsync, out Ice.AsyncCallback sentCallback) { return outAsync.invokeRemote(_connection, _compress, _response, out sentCallback); }
public bool sendAsyncRequest(ProxyOutgoingAsyncBase outAsync, out Ice.AsyncCallback sentCallback) { return outAsync.invokeCollocated(this, out sentCallback); }
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); }
public int sendAsyncRequest(ProxyOutgoingAsyncBase outAsync) { return outAsync.invokeRemote(_connection, _compress, _response); }
public RetryTask(RetryQueue retryQueue, ProxyOutgoingAsyncBase outAsync) { _retryQueue = retryQueue; _outAsync = outAsync; }
public int sendAsyncRequest(ProxyOutgoingAsyncBase outAsync) { return outAsync.invokeCollocated(this); }
public RetryTask(Instance instance, RetryQueue retryQueue, ProxyOutgoingAsyncBase outAsync) { _instance = instance; _retryQueue = retryQueue; _outAsync = outAsync; }
public int sendAsyncRequest(ProxyOutgoingAsyncBase outAsync) { return(outAsync.invokeRemote(_connection, _compress, _response)); }