Package eu.mosaic_cloud.tools.callbacks.core

Examples of eu.mosaic_cloud.tools.callbacks.core.CallbackCanceled


  {
    Preconditions.checkNotNull (request);
    this.transcript.traceDebugging ("calceling the pending request `%s`...", request);
    final CallbackCompletionDeferredFuture<?> future = this.removeRequest (request);
    Preconditions.checkState (future != null);
    future.trigger.triggerFailed (new CallbackCanceled ());
  }
View Full Code Here


      this.transcript.traceDebugging ("canceling all pending requests...");
      for (final Map.Entry<String, CallbackCompletionDeferredFuture<?>> entry : this.futures.entrySet ()) {
        final String request = entry.getKey ();
        final CallbackCompletionDeferredFuture<?> future = entry.getValue ();
        this.transcript.traceDebugging ("canceling the pending request `%s`...", request);
        future.trigger.triggerFailed (new CallbackCanceled ());
      }
      this.futures.clear ();
    }
  }
View Full Code Here

            scheduler.unregisterActor (this);
            Preconditions.checkState (this.handler.compareAndSet (handler, null));
            Preconditions.checkState (this.scheduler.compareAndSet (scheduler, null));
          } else {
            if (assign != null) {
              assign.future.triggerFailure (new CallbackCanceled ());
              Preconditions.checkState (this.assignAction.compareAndSet (assign, null));
            }
            for (final ActorAction<?> action : this.actions)
              action.future.triggerFailure (new CallbackCanceled ());
            this.actions.clear ();
          }
        } else {
          final ActorAssignAction assign = this.assignAction.get ();
          final CallbackHandler handler = this.handler.get ();
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.tools.callbacks.core.CallbackCanceled

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.