io.fluxcapacitor.javaclient.scheduling.client.SchedulingClient 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.client;
import io.fluxcapacitor.common.Awaitable;
import io.fluxcapacitor.common.api.scheduling.ScheduledMessage;
import java.time.Clock;
public interface SchedulingClient extends AutoCloseable {
Awaitable schedule(ScheduledMessage... schedules);
Awaitable cancelSchedule(String scheduleId);
default Clock getClock() {
return Clock.systemUTC();
}
@Override
void close();
}