Class PubSubEntryPoint
java.lang.Object
org.chenile.pubsub.entry.PubSubEntryPoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChenileConfigurationprivate ChenileEntryPointprivate static final org.slf4j.Loggerprivate final ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ChenileExchangemakeExchange(String topic) topic will be in the format /some/stuff/serviceName/operationName extract the service name and operation name from the topicprivate voidpopulateHeaders(Map<String, Object> headers, ChenileExchange exchange) voidThe entry point for MQ-TT.
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
chenileConfiguration
-
pubSubConfig
-
chenileEntryPoint
-
objectMapper
-
-
Constructor Details
-
PubSubEntryPoint
public PubSubEntryPoint()
-
-
Method Details
-
process
public void process(String topic, String messageContent, Map<String, Object> headers) throws ExceptionThe entry point for MQ-TT. It puts the message into the system and extracts the response which is logged. We support asynchronous messages at this point in time.- Parameters:
topic- the topic where the message was received- Throws:
Exception- if there is a problem in processing the message
-
populateHeaders
-
makeExchange
topic will be in the format /some/stuff/serviceName/operationName extract the service name and operation name from the topic- Parameters:
topic- the topic that received this message. Used to compute service and op name- Returns:
- the exchange
-