Uses of Interface
org.axonframework.deadline.DeadlineMessage
Packages that use DeadlineMessage
Package
Description
Deadline support carried over from Axon Framework 4, to keep deadlines that were scheduled before migrating firing
while a project moves off this API.
Test support for the deadlines carried by
axoniq-legacy.Test support for the sagas carried by
axon-legacy.-
Uses of DeadlineMessage in org.axonframework.deadline
Classes in org.axonframework.deadline that implement DeadlineMessageMethods in org.axonframework.deadline that return DeadlineMessageModifier and TypeMethodDescriptionDeadlineMessage.andMetadata(Map<String, String> additionalMetadata) GenericDeadlineMessage.andMetadata(Map<String, String> additionalMetadata) protected DeadlineMessageAbstractDeadlineManager.asDeadlineMessage(String deadlineName, @Nullable Object messageOrPayload, Instant expiryTime) Returns the givendeadlineNameandmessageOrPayloadas a DeadlineMessage which expires at the givenexpiryTime.static DeadlineMessageGenericDeadlineMessage.asDeadlineMessage(String deadlineName, @Nullable Object messageOrPayload) Deprecated.static DeadlineMessageGenericDeadlineMessage.asDeadlineMessage(String deadlineName, @Nullable Object messageOrPayload, Instant expiryTime) Returns the givendeadlineNameandmessageOrPayloadas a DeadlineMessage which expires at the givenexpiryTime.protected DeadlineMessageAbstractDeadlineManager.processDispatchInterceptors(DeadlineMessage message, @Nullable ProcessingContext context) Applies registeredMessageDispatchInterceptors to the givenmessage, handing them the givencontext.default DeadlineMessageDeadlineMessage.withConvertedPayload(Class<?> type, Converter converter) DeadlineMessage.withConvertedPayload(Type type, Converter converter) default DeadlineMessageDeadlineMessage.withConvertedPayload(TypeReference<?> type, Converter converter) GenericDeadlineMessage.withConvertedPayload(Type type, Converter converter) DeadlineMessage.withMetadata(Map<String, String> metadata) GenericDeadlineMessage.withMetadata(Map<String, String> metadata) Methods in org.axonframework.deadline that return types with arguments of type DeadlineMessageModifier and TypeMethodDescriptionprotected List<MessageDispatchInterceptor<? super DeadlineMessage>> AbstractDeadlineManager.dispatchInterceptors()Provides a list of registered dispatch interceptors.protected List<MessageHandlerInterceptor<? super DeadlineMessage>> AbstractDeadlineManager.handlerInterceptors()Provides a list of registered handler interceptors.Methods in org.axonframework.deadline with parameters of type DeadlineMessageModifier and TypeMethodDescriptionvoidDeadlineDelivery.deliver(DeadlineMessage deadlineMessage, ScopeDescriptor deadlineScope) Delivers the givendeadlineMessageto the components resolving the givendeadlineScope, and waits for the unit of work to complete.protected DeadlineMessageAbstractDeadlineManager.processDispatchInterceptors(DeadlineMessage message, @Nullable ProcessingContext context) Applies registeredMessageDispatchInterceptors to the givenmessage, handing them the givencontext.Method parameters in org.axonframework.deadline with type arguments of type DeadlineMessageModifier and TypeMethodDescriptionAbstractDeadlineManager.registerDispatchInterceptor(MessageDispatchInterceptor<? super DeadlineMessage> dispatchInterceptor) Registers the givendispatchInterceptor, which is applied to everyDeadlineMessagebefore it is scheduled.AbstractDeadlineManager.registerHandlerInterceptor(MessageHandlerInterceptor<? super DeadlineMessage> handlerInterceptor) Registers the givenhandlerInterceptor, which is applied around the handling of everyDeadlineMessagewhen its deadline fires.Constructor parameters in org.axonframework.deadline with type arguments of type DeadlineMessageModifierConstructorDescriptionDeadlineDelivery(UnitOfWorkFactory unitOfWorkFactory, ScopeAwareProvider scopeAwareProvider, List<MessageHandlerInterceptor<? super DeadlineMessage>> handlerInterceptors) Creates aDeadlineDeliverydelivering through the given components. -
Uses of DeadlineMessage in org.axonframework.test.deadline
Methods in org.axonframework.test.deadline that return DeadlineMessageMethods in org.axonframework.test.deadline with parameters of type DeadlineMessageModifier and TypeMethodDescriptionvoidDeadlineConsumer.consume(ScopeDescriptor deadlineScope, DeadlineMessage deadlineMessage) Consumes givendeadlineMessage.default voidDeadlineConsumer.consume(ScopeDescriptor deadlineScope, DeadlineMessage deadlineMessage, ProcessingContext context) Consumes givendeadlineMessagewithin the givencontext, theProcessingContextof the unit of work theStubDeadlineManagerfires the deadline in.ScheduledDeadlineInfo.recreateWithNewMessage(DeadlineMessage deadlineMessage) Creates a new instance of scheduled deadline info with newdeadlineMessage.Method parameters in org.axonframework.test.deadline with type arguments of type DeadlineMessageModifier and TypeMethodDescriptionStubDeadlineManager.registerDispatchInterceptor(MessageDispatchInterceptor<? super DeadlineMessage> dispatchInterceptor) Registers the givendispatchInterceptor, which is invoked for each deadline that is scheduled.StubDeadlineManager.registerHandlerInterceptor(MessageHandlerInterceptor<? super DeadlineMessage> handlerInterceptor) Registers the givenhandlerInterceptor, which is invoked around the consumer of each fired deadline.Constructors in org.axonframework.test.deadline with parameters of type DeadlineMessageModifierConstructorDescriptionScheduledDeadlineInfo(Instant scheduleTime, String deadlineName, String scheduleId, int counter, DeadlineMessage deadlineMessage, ScopeDescriptor deadlineScope) Instantiates a ScheduledDeadlineInfo. -
Uses of DeadlineMessage in org.axonframework.test.saga
Method parameters in org.axonframework.test.saga with type arguments of type DeadlineMessageModifier and TypeMethodDescriptionFixtureExecutionResult.expectNoScheduledDeadlineMatching(Duration durationToScheduledTime, org.hamcrest.Matcher<? super DeadlineMessage> matcher) Asserts that no deadline matching the givenmatchershould be scheduled after the givendurationToScheduledTime.FixtureExecutionResult.expectNoScheduledDeadlineMatching(Instant from, Instant to, org.hamcrest.Matcher<? super DeadlineMessage> matcher) Asserts that no deadline matching the givenmatcherhas been scheduled between thetoandfromtimes, wheretoandfromare inclusive.FixtureExecutionResult.expectNoScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage> matcher) Asserts that no deadline matching the givenmatcherhas been scheduled at the givenscheduledTime.FixtureExecutionResult.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage> matcher) Asserts that no deadline matching the givenmatcheris scheduled.FixtureExecutionResult.expectScheduledDeadlineMatching(Duration duration, org.hamcrest.Matcher<? super DeadlineMessage> matcher) Asserts that a deadline scheduled after givendurationmatches the givenmatcher.FixtureExecutionResult.expectScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage> matcher) Asserts that a deadline matching the givenmatcherhas been scheduled at the givenscheduledTime.FixtureConfiguration.registerDeadlineDispatchInterceptor(MessageDispatchInterceptor<? super DeadlineMessage> deadlineDispatchInterceptor) Registers a deadline dispatch interceptor which will always be invoked before a deadline is dispatched (scheduled) on theDeadlineManagerto perform a task specified in the interceptor.SagaTestFixture.registerDeadlineDispatchInterceptor(MessageDispatchInterceptor<? super DeadlineMessage> deadlineDispatchInterceptor) FixtureConfiguration.registerDeadlineHandlerInterceptor(MessageHandlerInterceptor<? super DeadlineMessage> deadlineHandlerInterceptor) Registers a deadline handler interceptor which will always be invoked before a deadline is handled to perform a task specified in the interceptor.SagaTestFixture.registerDeadlineHandlerInterceptor(MessageHandlerInterceptor<? super DeadlineMessage> deadlineHandlerInterceptor)
GenericDeadlineMessage.asDeadlineMessage(String, Object, Instant)instead, as it sets the timestamp of the deadline, rather than the current time