Class ScheduledTask
java.lang.Object
net.ognetwork.ogcore.api.scheduledtasks.ScheduledTask
- Direct Known Subclasses:
PartyDisconnectTask,PartyInviteTask
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScheduledTask(long executionTime, String payload) Schedules a task with the specified execution time and payload.ScheduledTask(String redisKey) Creates a scheduled task instance based on a known key.ScheduledTask(String redisKey, long executionTime, String payload) Schedules a task with the specified execution time and payload. -
Method Summary
-
Field Details
-
SCHEDULED_TASK_QUEUE
- See Also:
-
SCHEDULED_TASK_PREFIX
- See Also:
-
-
Constructor Details
-
ScheduledTask
Schedules a task with the specified execution time and payload.- Parameters:
redisKey- The redis key to use for the scheduled task.executionTime- The unix timestamp that the task should be executed at.payload- The payload that will be used to execute the task at the specified time.
-
ScheduledTask
Schedules a task with the specified execution time and payload.- Parameters:
executionTime- The unix timestamp that the task should be executed at.payload- The payload that will be used to execute the task at the specified time.
-
ScheduledTask
Creates a scheduled task instance based on a known key. If the key does not exist, then a scheduled task is created with this key.- Parameters:
redisKey- The redis key corresponding to this scheduled task.
-
-
Method Details
-
smartExecute
-
cancel
public void cancel()
-