Interface MessageDestination
public interface MessageDestination
Interface to be used by the OutboundMessageHandler during routing to send a Message to a destination.
-
Method Summary
Modifier and Type Method Description TaskResult
process(Message message, GridTaskContext ctx, PlatformUserContext context)
Process the outbound messagevoid
setConfig(java.lang.String config)
Sets the configuration for the destination.
-
Method Details
-
setConfig
void setConfig(java.lang.String config)Sets the configuration for the destination. -
process
TaskResult process(Message message, GridTaskContext ctx, PlatformUserContext context) throws java.lang.ExceptionProcess the outbound message- Parameters:
message
- Message which needs to be processedctx
- GridTaskContext provides information about the grid task associated with the messagecontext
- user's contextual information- Returns:
- indicates whether processing succeeded or failed, and whether to retry
- Throws:
java.lang.Exception
-