Package com.sun.sgs.kernel

Examples of com.sun.sgs.kernel.RecurringTaskHandle


            // mark the task as running on this node so that it doesn't
            // also run somewhere else
            dataService.markForUpdate(ptask);
            ptask.setRunningNode(nodeId);

            RecurringTaskHandle handle =
                transactionScheduler.scheduleRecurringTask(
                    runner, identity,
                    watchdogService.getSystemTimeMillis(restartTime),
                    ptask.getPeriod());
            ctxFactory.joinTransaction().
View Full Code Here


        ScheduledTaskImpl scheduledTask = new ScheduledTaskImpl.Builder(
                task, owner, defaultPriority).
                startTime(startTime).
                period(period).
                build();
        RecurringTaskHandle handle =
            backingQueue.createRecurringTaskHandle(scheduledTask);
        scheduledTask.setRecurringTaskHandle(handle);
        return handle;
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.kernel.RecurringTaskHandle

Copyright © 2018 www.massapicom. 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.