Class EventSchedulerGrpc.EventSchedulerStub

  • Enclosing class:
    EventSchedulerGrpc

    public static final class EventSchedulerGrpc.EventSchedulerStub
    extends io.grpc.stub.AbstractAsyncStub<EventSchedulerGrpc.EventSchedulerStub>
    A stub to allow clients to do asynchronous rpc calls to service EventScheduler.
     Service to use AxonServer as a provider of an EventScheduler 
     
    • Method Detail

      • scheduleEvent

        public void scheduleEvent​(ScheduleEventRequest request,
                                  io.grpc.stub.StreamObserver<ScheduleToken> responseObserver)
          Schedule the given event for publication at the given time}. The returned ScheduleToken can be used to cancel the planned publication.
         
      • rescheduleEvent

        public void rescheduleEvent​(RescheduleEventRequest request,
                                    io.grpc.stub.StreamObserver<ScheduleToken> responseObserver)
          Cancel a scheduled event and schedule another in its place.
         
      • cancelScheduledEvent

        public void cancelScheduledEvent​(CancelScheduledEventRequest request,
                                         io.grpc.stub.StreamObserver<InstructionAck> responseObserver)
          Cancel the publication of a scheduled event. If the events has already been published, this method does nothing.