Interface ScheduleHandle
public interface ScheduleHandle
Handle for interacting with a schedule.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbackfill(List<ScheduleBackfill> backfills) Backfill this schedule by going through the specified time periods as if they passed right now.voiddelete()Delete this schedule.describe()Fetch this schedule's description.getId()Get this schedule's ID.voidpause()Pause this schedule.voidPause this schedule.voidtrigger()Trigger an action on this schedule to happen immediately.voidtrigger(io.temporal.api.enums.v1.ScheduleOverlapPolicy overlapPolicy) Trigger an action on this schedule to happen immediately.voidunpause()Unpause this schedule.voidUnpause this schedule.voidUpdate this schedule.
-
Method Details
-
getId
-
backfill
Backfill this schedule by going through the specified time periods as if they passed right now.- Parameters:
backfills- backfill requests to run
-
delete
void delete()Delete this schedule. -
describe
ScheduleDescription describe()Fetch this schedule's description.- Returns:
- description of the schedule
-
pause
-
pause
void pause()Pause this schedule. -
trigger
void trigger(io.temporal.api.enums.v1.ScheduleOverlapPolicy overlapPolicy) Trigger an action on this schedule to happen immediately.- Parameters:
overlapPolicy- override the schedule overlap policy.
-
trigger
void trigger()Trigger an action on this schedule to happen immediately. -
unpause
Unpause this schedule.- Parameters:
note- to set the schedule state.
-
unpause
void unpause()Unpause this schedule. -
update
Update this schedule. This is done via a callback which can be called multiple times in case of conflict.- Parameters:
updater- Callback to invoke with the current update input. The result can be null to signify no update to perform, or a schedule update instance with a schedule to perform an update.
-