io.fluxcapacitor.javaclient.scheduling.Scheduler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Default Java client library for interfacing with Flux Capacitor.
package io.fluxcapacitor.javaclient.scheduling;
import io.fluxcapacitor.common.api.Metadata;
import java.time.Instant;
public interface Scheduler {
default void schedule(String scheduleId, Instant timestamp, Object payload) {
schedule(scheduleId, timestamp, payload, Metadata.empty());
}
void schedule(String scheduleId, Instant timestamp, Object payload, Metadata metadata);
void cancelSchedule(String scheduleId);
}