All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fluxcapacitor.javaclient.scheduling.client.SchedulingClient Maven / Gradle / Ivy

There is a newer version: 0.1015.0
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy