Examples of scheduleOnce()


Examples of akka.actor.Scheduler.scheduleOnce()

        caller = getSender();
        targetActor = getContext().actorOf(askParam.props);
        getContext().watch(targetActor);
        targetActor.forward(askParam.message, getContext());
        Scheduler scheduler = getContext().system().scheduler();
        timeoutMessage = scheduler.scheduleOnce(askParam.timeout.duration(),
            self(), new AskTimeout(), context().dispatcher(), null);
      } else if (message instanceof Terminated) {
        Throwable ex = new ActorKilledException("Target actor terminated.");
        caller.tell(new Status.Failure(ex), self());
        timeoutMessage.cancel();
View Full Code Here

Examples of org.molgenis.services.SchedulingService.scheduleOnce()

      //
      // scheduler.start();
      // scheduler.scheduleJob(job, t);
      HashMap<Object, Object> dataMap2 = new HashMap<Object, Object>();
      // dataMap2.put("cleanTmpDirTask", task);
      schedulingService.scheduleOnce(dataMap2, CleanTmpDirJob.class);
      // schedulingService.shutdown();

      System.out.println("MolgenisCleanTmpDirService initialized.");

    }
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.