Uses of Class
dk.cloudcreate.essentials.components.foundation.messaging.queue.Message
Packages that use Message
Package
Description
-
Uses of Message in dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward
Methods in dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward with parameters of type MessageModifier and TypeMethodDescriptionvoidInbox.addMessageReceived(Message message) Register or add a message that has been received
This message will be stored durably (without any duplication check) in connection with the currently activeUnitOfWork(or a newUnitOfWorkwill be created in case no there isn't an activeUnitOfWork).
The message will be delivered asynchronously to the message consumerInboxes.DurableQueueBasedInboxes.DurableQueueBasedInbox.addMessageReceived(Message message) protected voidPatternMatchingMessageHandler.handleUnmatchedMessage(Message message) Override this method to provide custom handling forMessage's who'sgetPayload()aren't matched
Default behaviour is to throw anIllegalArgumentExceptionunlessPatternMatchingMessageHandler.isAllowUnmatchedMessages()is set to true (default value is false)Outbox.sendMessage(Message message) Send a message asynchronously.
This message will be stored durably (without any duplication check) in connection with the currently activeUnitOfWork(or a newUnitOfWorkwill be created in case no there isn't an activeUnitOfWork).
The message will be delivered asynchronously to the message consumerOutboxes.DurableQueueBasedOutboxes.DurableQueueBasedOutbox.sendMessage(Message payload) Method parameters in dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward with type arguments of type MessageModifier and TypeMethodDescriptionStart consuming messages from the Inbox using the provided message consumer.
This is the same as callingInbox.setMessageConsumer(Consumer)followed byInbox.startConsuming()
Only needs to be called if the instance was created without a message consumer such as viaInboxes.getOrCreateInbox(InboxConfig)Start consuming messages from the Outbox using the provided message consumer.
This is the same as callingOutbox.setMessageConsumer(Consumer)followed byOutbox.startConsuming()
Only needs to be called if the instance was created without a message consumer such as viaOutboxes.getOrCreateOutbox(OutboxConfig)Outboxes.DurableQueueBasedOutboxes.DurableQueueBasedOutbox.consume(Consumer<Message> messageConsumer) Inboxes.DurableQueueBasedInboxes.getOrCreateInbox(InboxConfig inboxConfig, Consumer<Message> messageConsumer) Inboxes.getOrCreateInbox(InboxConfig inboxConfig, Consumer<Message> messageConsumer) Get an existingInboxinstance or create a new instance.Outboxes.DurableQueueBasedOutboxes.getOrCreateOutbox(OutboxConfig outboxConfig, Consumer<Message> messageConsumer) Outboxes.getOrCreateOutbox(OutboxConfig outboxConfig, Consumer<Message> messageConsumer) Get an existingOutboxinstance or create a new instance.Inbox.setMessageConsumer(Consumer<Message> messageConsumer) Set the message consumer.Inboxes.DurableQueueBasedInboxes.DurableQueueBasedInbox.setMessageConsumer(Consumer<Message> messageConsumer) Outbox.setMessageConsumer(Consumer<Message> messageConsumer) Set the message consumer.Outboxes.DurableQueueBasedOutboxes.DurableQueueBasedOutbox.setMessageConsumer(Consumer<Message> messageConsumer) Constructor parameters in dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward with type arguments of type MessageModifierConstructorDescriptionDurableQueueBasedInbox(InboxConfig config, Consumer<Message> messageConsumer) DurableQueueBasedOutbox(OutboxConfig config, Consumer<Message> messageConsumer) -
Uses of Message in dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.operation
Constructors in dk.cloudcreate.essentials.components.foundation.messaging.eip.store_and_forward.operation with parameters of type Message -
Uses of Message in dk.cloudcreate.essentials.components.foundation.messaging.queue
Subclasses of Message in dk.cloudcreate.essentials.components.foundation.messaging.queueModifier and TypeClassDescriptionclassRepresents a message that will be delivered in order.
This of course requires that message are queued in order and that the consumer is single threaded.
All messages sharing the sameOrderedMessage.key, will be delivered according to theirOrderedMessage.order
An example of a message key is the id of the entity the message relates toFields in dk.cloudcreate.essentials.components.foundation.messaging.queue declared as MessageModifier and TypeFieldDescriptionfinal MessageDefaultQueuedMessage.messageThe deserialized message payloadMethods in dk.cloudcreate.essentials.components.foundation.messaging.queue that return MessageModifier and TypeMethodDescriptionDefaultQueuedMessage.getMessage()QueuedMessage.getMessage()Get the message queuedstatic MessageCreate a newMessageand an emptyMessageMetaDatastatic MessageMessage.of(Object payload, MessageMetaData metaData) Create a newMessageMethods in dk.cloudcreate.essentials.components.foundation.messaging.queue with parameters of type MessageModifier and TypeMethodDescriptiondefault QueueEntryIdDurableQueues.queueMessage(QueueName queueName, Message message) Queue a message for asynchronous delivery without delay to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactionaldefault QueueEntryIdDurableQueues.queueMessage(QueueName queueName, Message message, Exception causeOfEnqueuing, Duration deliveryDelay) Queue a message for asynchronous delivery optional delay to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactionaldefault QueueEntryIdDurableQueues.queueMessage(QueueName queueName, Message message, Duration deliveryDelay) Queue a message for asynchronous delivery optional delay to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactionaldefault QueueEntryIdDurableQueues.queueMessage(QueueName queueName, Message message, Optional<Exception> causeOfEnqueuing, Optional<Duration> deliveryDelay) Queue a message for asynchronous delivery optional delay to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactionaldefault QueueEntryIdDurableQueues.queueMessage(QueueName queueName, Message message, Optional<Duration> deliveryDelay) Queue a message for asynchronous delivery optional delay to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactionaldefault QueueEntryIdDurableQueues.queueMessageAsDeadLetterMessage(QueueName queueName, Message message, Exception causeOfError) Queue the message directly as a Dead Letter Message.Method parameters in dk.cloudcreate.essentials.components.foundation.messaging.queue with type arguments of type MessageModifier and TypeMethodDescriptiondefault List<QueueEntryId>DurableQueues.queueMessages(QueueName queueName, List<? extends Message> messages) Queue multiple messages to the same queue.default List<QueueEntryId>DurableQueues.queueMessages(QueueName queueName, List<? extends Message> messages, Duration deliveryDelay) Queue multiple messages to the same queue.default List<QueueEntryId>DurableQueues.queueMessages(QueueName queueName, List<? extends Message> messages, Optional<Duration> deliveryDelay) Queue multiple messages to the same queue.Constructors in dk.cloudcreate.essentials.components.foundation.messaging.queue with parameters of type MessageModifierConstructorDescriptionDefaultQueuedMessage(QueueEntryId id, QueueName queueName, Message message, OffsetDateTime addedTimestamp, OffsetDateTime nextDeliveryTimestamp, OffsetDateTime deliveryTimestamp, String lastDeliveryError, int totalDeliveryAttempts, int redeliveryAttempts, boolean isDeadLetterMessage, boolean isBeingDelivered) -
Uses of Message in dk.cloudcreate.essentials.components.foundation.messaging.queue.operations
Fields in dk.cloudcreate.essentials.components.foundation.messaging.queue.operations with type parameters of type MessageMethods in dk.cloudcreate.essentials.components.foundation.messaging.queue.operations that return MessageModifier and TypeMethodDescriptionQueueMessage.getMessage()Get the message being queuedQueueMessageAsDeadLetterMessage.getMessage()Get the dead letter messageMethods in dk.cloudcreate.essentials.components.foundation.messaging.queue.operations that return types with arguments of type MessageMethods in dk.cloudcreate.essentials.components.foundation.messaging.queue.operations with parameters of type MessageModifier and TypeMethodDescriptionvoidQueueMessage.setMessage(Message message) voidQueueMessageAsDeadLetterMessage.setMessage(Message message) QueueMessageAsDeadLetterMessageBuilder.setMessage(Message message) QueueMessageBuilder.setMessage(Message message) Method parameters in dk.cloudcreate.essentials.components.foundation.messaging.queue.operations with type arguments of type MessageModifier and TypeMethodDescriptionvoidQueueMessages.setMessages(List<Message> messages) QueueMessagesBuilder.setMessages(List<Message> messages) Constructors in dk.cloudcreate.essentials.components.foundation.messaging.queue.operations with parameters of type MessageModifierConstructorDescriptionQueueMessage(QueueName queueName, Message message, Exception causeOfEnqueuing, Duration deliveryDelay) Queue a message for asynchronous delivery optional delay to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactionalQueueMessage(QueueName queueName, Message message, Optional<Exception> causeOfEnqueuing, Optional<Duration> deliveryDelay) Queue a message for asynchronous delivery optional delay to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactionalQueueMessageAsDeadLetterMessage(QueueName queueName, Message message, Exception causeOfError) Queue the message directly as a Dead Letter Message.Constructor parameters in dk.cloudcreate.essentials.components.foundation.messaging.queue.operations with type arguments of type MessageModifierConstructorDescriptionQueueMessages(QueueName queueName, List<? extends Message> messages, Duration deliveryDelay) Queue multiple messages to the same queue.QueueMessages(QueueName queueName, List<? extends Message> messages, Optional<Duration> deliveryDelay) Queue multiple messages to the same queue.