Examples of Scheduler


Examples of org.waveprotocol.wave.model.util.Scheduler

      LoggerContext loggers = new LoggerContext(logger, logger, logger, logger);

      IdURIEncoderDecoder uriCodec = new IdURIEncoderDecoder(new ClientPercentEncoderDecoder());
      HashedVersionFactory hashFactory = new HashedVersionZeroFactoryImpl(uriCodec);

      Scheduler scheduler = new FuzzingBackOffScheduler.Builder(getRpcScheduler())
          .setInitialBackOffMs(ClientFlags.get().initialRpcBackoffMs())
          .setMaxBackOffMs(ClientFlags.get().maxRpcBackoffMs())
          .setRandomisationFactor(0.5)
          .build();
View Full Code Here

Examples of ptolemy.actor.sched.Scheduler

     *  one of the associated actors throws it.
     */
    public void preinitialize() throws IllegalActionException {
        super.preinitialize();

        Scheduler scheduler = getScheduler();

        if (scheduler == null) {
            throw new IllegalActionException("Attempted to initialize "
                    + "GR system with no scheduler");
        }

        // force the schedule to be computed.
        if (_debugging) {
            _debug("Computing schedule");
        }

        try {
            scheduler.getSchedule();
        } catch (Exception ex) {
            throw new IllegalActionException(this, ex,
                    "Failed to compute schedule:");
        }
    }
View Full Code Here

Examples of rx.Scheduler

                    })));
                }
            });
        } else {
            // Invoke as sync JAX-RS client request and subscribe/observe on a scheduler initialized with executor service.
            final Scheduler scheduler = Schedulers.from(getExecutorService());

            return Observable.create(new Observable.OnSubscribe<T>() {
                @Override
                public void call(final Subscriber<? super T> subscriber) {
                    if (!subscriber.isUnsubscribed()) {
View Full Code Here

Examples of us.codecraft.webmagic.scheduler.Scheduler

            @Override
            public void setThread(int threadNum) {

            }
        }).setScheduler(new Scheduler() {

            private AtomicInteger count = new AtomicInteger();

            private Random random = new Random();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.