Beispiel #1
0
        /// <summary>
        /// Gets and resets future for previous asynchronous operation.
        /// </summary>
        /// <param name="lastAsyncOpId">The last async op id.</param>
        /// <returns>
        /// Future for previous asynchronous operation.
        /// </returns>
        /// <exception cref="System.InvalidOperationException">Asynchronous mode is disabled</exception>
        internal IFuture <TResult> GetFuture <TResult>(int lastAsyncOpId)
        {
            if (!_flagAsync)
            {
                throw IgniteUtils.GetAsyncModeDisabledException();
            }

            var converter = GetFutureResultConverter <TResult>(lastAsyncOpId);

            _invokeAllConverter.Value = null;

            return(GetFuture((futId, futTypeId) => UU.TargetListenFutureForOperation(Target, futId, futTypeId, lastAsyncOpId),
                             _flagKeepPortable, converter));
        }
Beispiel #2
0
 /** <inheritDoc /> */
 public virtual IFuture <TResult> GetFuture <TResult>()
 {
     throw IgniteUtils.GetAsyncModeDisabledException();
 }
Beispiel #3
0
 /** <inheritDoc /> */
 public IFuture GetFuture()
 {
     throw IgniteUtils.GetAsyncModeDisabledException();
 }