Examples of schedule()


Examples of org.jboss.ejb.BeanLock.schedule()

         if(tx != null)
         {
            BeanLock lock = container.getLockManager().getLock(ctx.getCacheKey());
            try
            {
               lock.schedule(mi);
               register(ctx, tx); // Set tx
               lock.endInvocation(mi);
            }
            finally
            {
View Full Code Here

Examples of org.jboss.util.timeout.TimeoutFactory.schedule()

      final int times = 5000;
      TT tt = new TT();
      TimeoutFactory tf = new TimeoutFactory();
      for (int i = 0; i < times; i++)
      {
         tf.schedule(0, (Runnable)tt);
      }
      count.whenEqual(times, null);
      assertEquals(times, count.get());
   }
View Full Code Here

Examples of org.jbpm.pvm.internal.job.TimerImpl.schedule()

    // initialize the timers
    Set<TimerDefinitionImpl> timerDefinitions = scope.getTimerDefinitions();
    if (!timerDefinitions.isEmpty()) {
      for (TimerDefinitionImpl timerDefinition: timerDefinitions) {
        TimerImpl timer = createTimer(timerDefinition);
        timer.schedule();
      }
    }
  }

  protected void destroyTimers(CompositeElementImpl scope) {
View Full Code Here

Examples of org.jbpm.pvm.internal.session.TimerSession.schedule()

  public TimerImpl() {
  }
 
  public void schedule() {
    TimerSession timerSession = Environment.getFromCurrent(TimerSession.class);
    timerSession.schedule(this);
  }

  public void setDueDateDescription(String dueDateDescription) {

    ScriptManager scriptManager = EnvironmentDefaults.getScriptManager();
View Full Code Here

Examples of org.jivesoftware.openfire.fastpath.util.TaskEngine.schedule()

     * it's own schedule but uses less threads.</p>
     * TODO: trace down all events that cause a state change so we don't have to poll
     */
    private void startTimer() {
        TaskEngine taskEngine = TaskEngine.getInstance();
        taskEngine.schedule(new TimerTask() {
            @Override
      public void run() {
                workgroupLock.readLock().lock();
                try {
                    for (Workgroup group : workgroups.values()) {
View Full Code Here

Examples of org.junit.runners.model.RunnerScheduler.schedule()

    private void runChildren(final RunNotifier notifier) {
        final RunnerScheduler currentScheduler = scheduler;
        try {
            for (final T each : getFilteredChildren()) {
                currentScheduler.schedule(new Runnable() {
                    public void run() {
                        ParentRunner.this.runChild(each, notifier);
                    }
                });
            }
View Full Code Here

Examples of org.keycloak.timer.TimerProvider.schedule()

    public static void setupScheduledTasks(final KeycloakSessionFactory sessionFactory) {
        long interval = Config.scope("scheduled").getLong("interval", 60L) * 1000;

        TimerProvider timer = sessionFactory.create().getProvider(TimerProvider.class);
        timer.schedule(new ScheduledTaskRunner(sessionFactory, new ClearExpiredEvents()), interval, "ClearExpiredEvents");
        timer.schedule(new ScheduledTaskRunner(sessionFactory, new ClearExpiredUserSessions()), interval, "ClearExpiredUserSessions");
        new UsersSyncManager().bootstrapPeriodic(sessionFactory, timer);
    }

    public KeycloakSessionFactory getSessionFactory() {
View Full Code Here

Examples of org.locationtech.udig.catalog.tests.ui.workflow.DialogDriver.schedule()

        };
        // sleep for 10 seconds, if dialog still active by then kill it
        DialogDriver driver = new DialogDriver(catalogImport.getDialog(), new Object[]{a1,
                IDialogConstants.CANCEL_ID});

        driver.schedule();
        catalogImport.getDialog().getWorkflowWizard().getWorkflow().setContext(context);
        catalogImport.run(new DummyMonitor(), context);
        driver.cancel();
    }
}
View Full Code Here

Examples of org.locationtech.udig.catalog.tests.ui.workflow.Runner.schedule()

        }
      }
       
    };
    Runner runner = new Runner(runners,2000);
    runner.schedule();
   
    OpenProjectElementCommand omCommand = new OpenProjectElementCommand(map);
    omCommand.run(new NullProgressMonitor());
   
    Display display = Display.getCurrent();
View Full Code Here

Examples of org.mule.api.schedule.Scheduler.schedule()

     *                   </p>
     */
    public void schedulePoll(String flowName) throws Exception
    {
        Scheduler scheduler = getScheduler(flowName);
        scheduler.schedule();
    }

    /**
     * <p>
     * Stops a poll that is running
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.