Interface MessageSubscription
Messages will be delivered even if the Messages Query HTTP API is not enabled.
For MessageSubscriptions, the format of the payload is MessageDeliveryPayload.
Example to create an instance using the builder pattern
MessageSubscription messageSubscription = MessageSubscription.builder()
.resourceTypeId(MessageSubscriptionResourceTypeId.APPROVAL_FLOW)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MessageSubscriptionBuilderbuilder()builder factory method for MessageSubscriptionstatic MessageSubscriptionBuilderbuilder(MessageSubscription template) create builder for MessageSubscription instancecopyDeep()static MessageSubscriptiondeepCopy(MessageSubscription template) factory method to create a deep copy of MessageSubscription@NotNull MessageSubscriptionResourceTypeIdUnique identifier for the type of resource, for example,order.getTypes()Must contain valid message types for the resource.static MessageSubscriptionof()factory methodstatic MessageSubscriptionof(MessageSubscription template) factory method to create a shallow copy MessageSubscriptionvoidsetResourceTypeId(MessageSubscriptionResourceTypeId resourceTypeId) Unique identifier for the type of resource, for example,order.voidMust contain valid message types for the resource.voidMust contain valid message types for the resource.static com.fasterxml.jackson.core.type.TypeReference<MessageSubscription>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMessageSubscription(Function<MessageSubscription, T> helper) accessor map function
-
Method Details
-
getResourceTypeId
Unique identifier for the type of resource, for example,
order.- Returns:
- resourceTypeId
-
getTypes
Must contain valid message types for the resource. For example, for resource type
productthe message typeProductPublishedis valid. If notypesof messages are given, the Subscription will receive all messages for this resource.- Returns:
- types
-
setResourceTypeId
Unique identifier for the type of resource, for example,
order.- Parameters:
resourceTypeId- value to be set
-
setTypes
Must contain valid message types for the resource. For example, for resource type
productthe message typeProductPublishedis valid. If notypesof messages are given, the Subscription will receive all messages for this resource.- Parameters:
types- values to be set
-
setTypes
Must contain valid message types for the resource. For example, for resource type
productthe message typeProductPublishedis valid. If notypesof messages are given, the Subscription will receive all messages for this resource.- Parameters:
types- values to be set
-
of
factory method- Returns:
- instance of MessageSubscription
-
of
factory method to create a shallow copy MessageSubscription- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MessageSubscription copyDeep() -
deepCopy
factory method to create a deep copy of MessageSubscription- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MessageSubscription- Returns:
- builder
-
builder
create builder for MessageSubscription instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMessageSubscription
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-