Configuring the components - Cloud - 8.0

Throttler (Mediation)

Version
Cloud
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Routing components (Mediation) > Throttler components (Mediation)
Data Quality and Preparation > Third-party systems > Routing components (Mediation) > Throttler components (Mediation)
Design and Development > Third-party systems > Routing components (Mediation) > Throttler components (Mediation)

Procedure

  1. Double-click Read_Output to open its Basic settings view in the Component tab.
  2. In the Path field, type in the path to the source message, for example, "E:/data/output". Keep the default settings for other fields.
  3. Double-click cThrottler to open its Basic settings view in the Component tab.
  4. In the Request per period field, type in the number of messages allowed to pass the throttler per period, for example, 1.
    In the Set time period field, type in the value of the period, for example, 8000.
  5. Double-click Print_File_Name to open its Basic settings view in the Component tab.
  6. In the Code box, enter the code below to get the name of the message that passes the throttler.
    System.out.println("The file that passes throttler is: "+exchange.getIn().getHeader("CamelFileName"));
  7. Double-click Print_File_Content to open its Basic settings view in the Component tab.
  8. In the Code box, enter the code below to get the content of the message that passes the throttler.
    System.out.println("The content of " +exchange.getIn().getHeader("CamelFileName")+ " is: "
    +exchange.getIn().getBody(String.class));
  9. Press Ctrl+S to save your Route.