Package io.axoniq.axonserver.grpc.event
Class EventSchedulerGrpc.EventSchedulerBlockingV2Stub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<EventSchedulerGrpc.EventSchedulerBlockingV2Stub>
-
- io.axoniq.axonserver.grpc.event.EventSchedulerGrpc.EventSchedulerBlockingV2Stub
-
- Enclosing class:
- EventSchedulerGrpc
public static final class EventSchedulerGrpc.EventSchedulerBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<EventSchedulerGrpc.EventSchedulerBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service EventScheduler.Service to use AxonServer as a provider of an EventScheduler
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EventSchedulerGrpc.EventSchedulerBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)InstructionAckcancelScheduledEvent(CancelScheduledEventRequest request)Cancel the publication of a scheduled event.ScheduleTokenrescheduleEvent(RescheduleEventRequest request)Cancel a scheduled event and schedule another in its place.ScheduleTokenscheduleEvent(ScheduleEventRequest request)Schedule the given event for publication at the given time}.-
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected EventSchedulerGrpc.EventSchedulerBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<EventSchedulerGrpc.EventSchedulerBlockingV2Stub>
-
scheduleEvent
public ScheduleToken scheduleEvent(ScheduleEventRequest request) throws io.grpc.StatusException
Schedule the given event for publication at the given time}. The returned ScheduleToken can be used to cancel the planned publication.
- Throws:
io.grpc.StatusException
-
rescheduleEvent
public ScheduleToken rescheduleEvent(RescheduleEventRequest request) throws io.grpc.StatusException
Cancel a scheduled event and schedule another in its place.
- Throws:
io.grpc.StatusException
-
cancelScheduledEvent
public InstructionAck cancelScheduledEvent(CancelScheduledEventRequest request) throws io.grpc.StatusException
Cancel the publication of a scheduled event. If the events has already been published, this method does nothing.
- Throws:
io.grpc.StatusException
-
-