Package com.skava
Class EventUtil
java.lang.Object
com.skava.EventUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckUserId
(org.apache.camel.Exchange exchange) checkUserIdeventTypecom.skava.core.properties.EventPayload<?>
getPayload
(org.apache.camel.Exchange exchange, Class<?> responseModel) void
sendEventPayload
(com.skava.core.properties.EventPayload<?> payloadobject)
-
Constructor Details
-
EventUtil
public EventUtil()
-
-
Method Details
-
sendEventPayload
@ConditionalOnProperty(prefix="skava.event", name="enableExternalEvent", havingValue="true") public void sendEventPayload(com.skava.core.properties.EventPayload<?> payloadobject) - Parameters:
payloadobject
- Indicates aEventPayload
, contains the payload for the event
-
getPayload
public com.skava.core.properties.EventPayload<?> getPayload(org.apache.camel.Exchange exchange, Class<?> responseModel) throws IOException - Parameters:
exchange
- Indicates aExchange
instance, which holds the information during the entire routing of a Message received by a Consumer exchangeresponseModel
- Indicates the generic response model class- Returns:
- Returns a
EventPayload
, contains the payload for the event - Throws:
IOException
- IOException
-
eventType
eventType- Parameters:
routeId
-- Returns:
-
checkUserId
checkUserId- Parameters:
exchange
-- Returns:
-