Package me.ehp246.aufjms.api.dispatch
Interface JmsDispatch
public interface JmsDispatch
The abstraction of a fully-realized out-bound JMS message.
A JmsDispatch is meant to be dispatched/sent by a
JmsDispatchFn.
- Since:
- 1.0
- Author:
- Lei Yang
-
Method Summary
Modifier and TypeMethodDescriptiondefault Objectbody()default Stringdefault Durationdelay()default AtreplyTo()to()static JmsDispatchtoDispatch(At to, String type) Single body value.static JmsDispatchtoDispatch(At to, String type, Object body) Single body value.static JmsDispatchtoDispatch(At to, String type, Object body, String id) Single body value.static JmsDispatchSingle body value.default Durationttl()Defines if the dispatch has a TTL.default Stringtype()
-
Method Details
-
to
At to() -
type
-
correlationId
-
body
-
replyTo
-
ttl
Defines if the dispatch has a TTL.The default,
null, means no TTL to set. -
properties
-
delay
-
toDispatch
Single body value. Generated correlation id.- Parameters:
to-type-- Returns:
-
toDispatch
Single body value. Generated correlation id.- Parameters:
to-type-body-- Returns:
-
toDispatch
Single body value. Generated correlation id.- Parameters:
to-type-body-id-- Returns:
-
toDispatch
static JmsDispatch toDispatch(At to, String type, Object body, String id, Map<String, Object> properties) Single body value. Generated correlation id.- Parameters:
to-type-body-id-properties-- Returns:
-