Ejemplo n.º 1
0
 /** {@inheritDoc} */
 public void run() {
   DataService dataService = ClientSessionServiceImpl.getDataService();
   String key = dataService.nextServiceBoundName(lastKey);
   if (key != null && key.startsWith(nodePrefix)) {
     TaskService taskService = ClientSessionServiceImpl.getTaskService();
     taskService.scheduleTask(new CleanupDisconnectedSessionTask(key));
     lastKey = key;
     taskService.scheduleTask(this);
   }
 }
 /** Schedules a non-durable, transactional task using the task service. */
 void scheduleTaskOnCommit(KernelRunnable task) {
   taskService.scheduleNonDurableTask(task, true);
 }