java.lang.Object
com.skava.marketplace.orchestration.utils.EventUtil

@Component public class EventUtil extends Object
EventUtil - This class will act as an interceptor to send external event.
Author:
Equinox Team
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    eventType(String routeId)
    eventType - This method will be used to construct event type.
    com.skava.core.properties.EventPayload<Object>
    getPayload(org.apache.camel.Exchange exchange, Class<?> responseModel, String collectionId)
    getPayload - This method will get the payload from response.
    void
    sendEventPayload(com.skava.core.properties.EventPayload<?> payloadobject)
    sendEventPayload - This method will act as a intercepter to send external event.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventUtil

      public EventUtil()
  • Method Details

    • sendEventPayload

      public void sendEventPayload(com.skava.core.properties.EventPayload<?> payloadobject)
      sendEventPayload - This method will act as a intercepter to send external event.
      Parameters:
      payloadobject -
    • getPayload

      public com.skava.core.properties.EventPayload<Object> getPayload(org.apache.camel.Exchange exchange, Class<?> responseModel, String collectionId) throws IOException
      getPayload - This method will get the payload from response.
      Parameters:
      exchange -
      responseModel -
      Returns:
      Throws:
      IOException
    • eventType

      public String eventType(String routeId)
      eventType - This method will be used to construct event type.
      Parameters:
      routeId -
      Returns: