コード例 #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);
   }
 }
コード例 #2
0
 /** Schedules a non-durable, transactional task using the task service. */
 void scheduleTaskOnCommit(KernelRunnable task) {
   taskService.scheduleNonDurableTask(task, true);
 }