Uses of Class
de.quantummaid.eventmaid.processingContext.ProcessingContext
-
-
Uses of ProcessingContext in de.quantummaid.eventmaid.channel
Methods in de.quantummaid.eventmaid.channel that return types with arguments of type ProcessingContext Modifier and Type Method Description List<Filter<ProcessingContext<T>>>Channel. getPostFilter()Returns a list of allFilterregistered in the post list.List<Filter<ProcessingContext<T>>>Channel. getPreFilter()Returns a list of allFilterregistered in the pre list.List<Filter<ProcessingContext<T>>>Channel. getProcessFilter()Returns a list of allFilterregistered in the process list.Methods in de.quantummaid.eventmaid.channel with parameters of type ProcessingContext Modifier and Type Method Description MessageIdChannel. send(ProcessingContext<T> processingContext)Send the given processingContext object over thisChannel.Method parameters in de.quantummaid.eventmaid.channel with type arguments of type ProcessingContext Modifier and Type Method Description voidChannel. addPostFilter(Filter<ProcessingContext<T>> filter)Adds theFilterto the list of postFilter.voidChannel. addPostFilter(Filter<ProcessingContext<T>> filter, int position)Adds theFilterat the given position to the list of postFilter.voidChannel. addPreFilter(Filter<ProcessingContext<T>> filter)Adds theFilterto the list of preFilter.voidChannel. addPreFilter(Filter<ProcessingContext<T>> filter, int position)Adds theFilterat the given position to the list of preFilter.voidChannel. addProcessFilter(Filter<ProcessingContext<T>> filter)Adds theFilterto the list of processFilter.voidChannel. addProcessFilter(Filter<ProcessingContext<T>> filter, int position)Adds theFilterat the given position to the list of processFilter.voidChannel. removePostFilter(Filter<ProcessingContext<T>> filter)Removes theFilterfrom the post list.voidChannel. removePreFilter(Filter<ProcessingContext<T>> filter)Removes theFilterfrom the pre list.voidChannel. removeProcessFilter(Filter<ProcessingContext<T>> filter)Removes theFilterfrom the process list. -
Uses of ProcessingContext in de.quantummaid.eventmaid.channel.action
Methods in de.quantummaid.eventmaid.channel.action with parameters of type ProcessingContext Modifier and Type Method Description voidConsume. accept(ProcessingContext<T> processingContext)Executes the consumer with the given messagestatic <T> Call<T>Call. callTo(Channel<T> targetChannel, ProcessingContext<T> processingContext)Factory method to create and execute aCallto the givenChannel.voidCall. execute(ProcessingContext<T> processingContext)Executed theCallAction.voidActionHandler. handle(T action, ProcessingContext<R> processingContext)Handle the execution of the givenActionand message.voidCallActionHandler. handle(Call<T> action, ProcessingContext<T> processingContext)Will always throwCallNotAllowedAsFinalChannelAction.voidConsumerActionHandler. handle(Consume<T> consume, ProcessingContext<T> processingContext)Will call theConsumeAction'sconsumer.voidJumpActionHandler. handle(Jump<T> jump, ProcessingContext<T> processingContext)Takes the message and sends in on the givenChannel.voidReturnActionHandler. handle(Return<T> returnAction, ProcessingContext<T> processingContext)Will lookup the lastCallActionand return from it.voidSubscriptionActionHandler. handle(Subscription<T> subscription, ProcessingContext<T> processingContext)Takes the message and delivers it to allSubscribers.Method parameters in de.quantummaid.eventmaid.channel.action with type arguments of type ProcessingContext Modifier and Type Method Description SubscriptionIdSubscription. addRawSubscriber(Subscriber<ProcessingContext<T>> subscriber)Adds aSubscriber, that gets access to the underlyingProcessingContextobject.SubscriptionIdSubscription. addRawSubscriber(Consumer<ProcessingContext<T>> consumer)Adds a the consumer wrapped in aSubscriberobject, that gets access to the underlyingProcessingContextobject.static <T> Consume<T>Consume. consumeMessage(Consumer<ProcessingContext<T>> consumer)Factory method for creating a newConsumeActionfor a consumer acceptingProcessingContext. -
Uses of ProcessingContext in de.quantummaid.eventmaid.channel.exception
Methods in de.quantummaid.eventmaid.channel.exception with parameters of type ProcessingContext Modifier and Type Method Description voidChannelExceptionHandler. handleFilterException(ProcessingContext<T> message, Exception e)Method, that is called, when an exception is thrown inside aFilter.voidErrorThrowingChannelExceptionHandler. handleFilterException(ProcessingContext<T> message, Exception e)voidChannelExceptionHandler. handleSubscriberException(ProcessingContext<T> message, Exception e)When the delivery should be aborted, this method is called to handle the exception.voidErrorThrowingChannelExceptionHandler. handleSubscriberException(ProcessingContext<T> message, Exception e)booleanChannelExceptionHandler. shouldSubscriberErrorBeHandledAndDeliveryAborted(ProcessingContext<T> message, Exception e)When an exception is thrown inside the final action, this message can decide, if the message should be ignored or if the delivery should be aborted andhandleSubscriberExceptionshould be called.booleanErrorThrowingChannelExceptionHandler. shouldSubscriberErrorBeHandledAndDeliveryAborted(ProcessingContext<T> message, Exception e) -
Uses of ProcessingContext in de.quantummaid.eventmaid.messageBus
Methods in de.quantummaid.eventmaid.messageBus with parameters of type ProcessingContext Modifier and Type Method Description MessageIdMessageBus. send(ProcessingContext<Object> processingContext)Sends theProcessingContexton theMessageBus.Method parameters in de.quantummaid.eventmaid.messageBus with type arguments of type ProcessingContext Modifier and Type Method Description voidMessageBus. addRaw(Filter<ProcessingContext<Object>> filter)voidMessageBus. addRaw(Filter<ProcessingContext<Object>> filter, int position)SubscriptionIdMessageBus. subscribe(CorrelationId correlationId, Subscriber<ProcessingContext<Object>> subscriber)Adds the givenSubscriberfor all messages with a matchingCorrelationId.SubscriptionIdMessageBus. subscribe(CorrelationId correlationId, Consumer<ProcessingContext<Object>> consumer)Adds the givenConsumerwrapped in aSubscriberobject for all messages with a matchingCorrelationId.SubscriptionIdMessageBus. subscribeRaw(EventType eventType, Subscriber<ProcessingContext<Object>> subscriber)Adds theSubscriberobject for all messages with a matchingEventType.SubscriptionIdMessageBus. subscribeRaw(EventType eventType, Consumer<ProcessingContext<Object>> consumer) -
Uses of ProcessingContext in de.quantummaid.eventmaid.messageBus.exception
Methods in de.quantummaid.eventmaid.messageBus.exception with parameters of type ProcessingContext Modifier and Type Method Description default voidMessageBusExceptionHandler. callTemporaryExceptionListener(ProcessingContext<Object> message, Exception e, List<MessageBusExceptionListener> listeners)For each exception, this method is responsible to call the dynamically addedMessageBusExceptionListener.voidErrorThrowingMessageBusExceptionHandler. handleDeliveryChannelException(ProcessingContext<Object> message, Exception e, Channel<Object> channel)voidMessageBusExceptionHandler. handleDeliveryChannelException(ProcessingContext<Object> message, Exception e, Channel<Object> channel)For eachExceptionthrown inside aSubscriber, for whichMessageBusExceptionHandler.shouldDeliveryChannelErrorBeHandledAndDeliveryAbortedreturnedtrue, this method is invoked.voidErrorThrowingMessageBusExceptionHandler. handleFilterException(ProcessingContext<Object> message, Exception e, Channel<Object> channel)voidMessageBusExceptionHandler. handleFilterException(ProcessingContext<Object> message, Exception e, Channel<Object> channel)When aExceptioninside aFilteris thrown, this method is invoked.booleanErrorThrowingMessageBusExceptionHandler. shouldDeliveryChannelErrorBeHandledAndDeliveryAborted(ProcessingContext<Object> message, Exception e, Channel<Object> channel)booleanMessageBusExceptionHandler. shouldDeliveryChannelErrorBeHandledAndDeliveryAborted(ProcessingContext<Object> message, Exception e, Channel<Object> channel)In some cases, anExceptionduring the delivery to aSubscribershould be ignored, so that the delivery is not stopped. -
Uses of ProcessingContext in de.quantummaid.eventmaid.messageBus.internal.brokering
Method parameters in de.quantummaid.eventmaid.messageBus.internal.brokering with type arguments of type ProcessingContext Modifier and Type Method Description voidMessageBusBrokerStrategy. addRawSubscriber(EventType eventType, Subscriber<ProcessingContext<Object>> subscriber)voidMessageBusBrokerStrategyImpl. addRawSubscriber(EventType eventType, Subscriber<ProcessingContext<Object>> subscriber) -
Uses of ProcessingContext in de.quantummaid.eventmaid.messageBus.internal.correlationIds
Methods in de.quantummaid.eventmaid.messageBus.internal.correlationIds that return types with arguments of type ProcessingContext Modifier and Type Method Description List<Subscriber<ProcessingContext<Object>>>CorrelationBasedSubscriptions. getSubscribersFor(CorrelationId correlationId)List<Subscriber<ProcessingContext<Object>>>CorrelationBasedSubscriptionsImpl. getSubscribersFor(CorrelationId correlationId)Method parameters in de.quantummaid.eventmaid.messageBus.internal.correlationIds with type arguments of type ProcessingContext Modifier and Type Method Description SubscriptionIdCorrelationBasedSubscriptions. addCorrelationBasedSubscriber(CorrelationId correlationId, Subscriber<ProcessingContext<Object>> subscriber)SubscriptionIdCorrelationBasedSubscriptionsImpl. addCorrelationBasedSubscriber(CorrelationId correlationId, Subscriber<ProcessingContext<Object>> subscriber) -
Uses of ProcessingContext in de.quantummaid.eventmaid.messageBus.internal.exception
Methods in de.quantummaid.eventmaid.messageBus.internal.exception with parameters of type ProcessingContext Modifier and Type Method Description voidErrorListenerDelegatingMessageBusExceptionHandler. handleDeliveryChannelException(ProcessingContext<Object> message, Exception e, Channel<Object> channel)voidDelegatingChannelExceptionHandler. handleFilterException(ProcessingContext<T> message, Exception e)voidErrorListenerDelegatingMessageBusExceptionHandler. handleFilterException(ProcessingContext<Object> message, Exception e, Channel<Object> channel)voidDelegatingChannelExceptionHandler. handleSubscriberException(ProcessingContext<T> message, Exception e)List<MessageBusExceptionListener>ExceptionListenerHandler. listenerFor(ProcessingContext<?> processingContext)List<MessageBusExceptionListener>ExceptionListenerHandlerImpl. listenerFor(ProcessingContext<?> processingContext)booleanErrorListenerDelegatingMessageBusExceptionHandler. shouldDeliveryChannelErrorBeHandledAndDeliveryAborted(ProcessingContext<Object> message, Exception e, Channel<Object> channel)booleanDelegatingChannelExceptionHandler. shouldSubscriberErrorBeHandledAndDeliveryAborted(ProcessingContext<T> message, Exception e) -
Uses of ProcessingContext in de.quantummaid.eventmaid.messageFunction
Methods in de.quantummaid.eventmaid.messageFunction that return ProcessingContext Modifier and Type Method Description ProcessingContext<Object>ResponseFuture. getRaw()Waits until the future is fulfilled and returns theProcessingContextpayload.ProcessingContext<Object>ResponseFuture. getRaw(long timeout, TimeUnit unit)Waits until the future is fulfilled and returns theProcessingContextpayload or the timeout expires. -
Uses of ProcessingContext in de.quantummaid.eventmaid.messageFunction.internal
Methods in de.quantummaid.eventmaid.messageFunction.internal that return ProcessingContext Modifier and Type Method Description ProcessingContext<Object>ExpectedResponseFuture. getRaw()ProcessingContext<Object>ExpectedResponseFuture. getRaw(long timeout, TimeUnit unit)Methods in de.quantummaid.eventmaid.messageFunction.internal with parameters of type ProcessingContext Modifier and Type Method Description voidExpectedResponseFuture. fullFill(ProcessingContext<Object> response) -
Uses of ProcessingContext in de.quantummaid.eventmaid.processingContext
Methods in de.quantummaid.eventmaid.processingContext that return ProcessingContext Modifier and Type Method Description static <T> ProcessingContext<T>ProcessingContext. processingContext(EventType eventType, MessageId messageId, CorrelationId correlationId, T payload, Object errorPayload)Factory method to create a newProcessingContext.static <T> ProcessingContext<T>ProcessingContext. processingContext(EventType eventType, MessageId messageId, CorrelationId correlationId, T payload, Object errorPayload, Map<Object,Object> contextMetaData, ChannelProcessingFrame<T> initialProcessingFrame, ChannelProcessingFrame<T> currentProcessingFrame)Factory method to create a newProcessingContext.static <T> ProcessingContext<T>ProcessingContext. processingContext(EventType eventType, MessageId messageId, T payload)Factory method to create a newProcessingContext.static <T> ProcessingContext<T>ProcessingContext. processingContext(EventType eventType, T payload)Factory method to create a newProcessingContext.static <T> ProcessingContext<T>ProcessingContext. processingContext(EventType eventType, T payload, CorrelationId correlationId)Factory method to create a newProcessingContext.static <T> ProcessingContext<T>ProcessingContext. processingContextForError(EventType eventType, Object errorPayload)Factory method to create a newProcessingContext.static <T> ProcessingContext<T>ProcessingContext. processingContextForPayloadAndError(EventType eventType, CorrelationId correlationId, T payload, Object errorPayload)Factory method to create a newProcessingContext.static <T> ProcessingContext<T>ProcessingContext. processingContextForPayloadAndError(EventType eventType, T payload, Object errorPayload)Factory method to create a newProcessingContext. -
Uses of ProcessingContext in de.quantummaid.eventmaid.serializedMessageBus
Method parameters in de.quantummaid.eventmaid.serializedMessageBus with type arguments of type ProcessingContext Modifier and Type Method Description SubscriptionIdSerializedMessageBus. subscribeRaw(EventType eventType, Subscriber<ProcessingContext<Map<String,Object>>> subscriber)Adds theSubscriberwith access to the rawProcessingContextfor all messages of theEventType.SubscriptionIdSerializedMessageBusImpl. subscribeRaw(EventType eventType, Subscriber<ProcessingContext<Map<String,Object>>> subscriber)
-