Class IndexNameFunction

  • All Implemented Interfaces:
    org.apache.camel.component.properties.PropertiesFunction

    public class IndexNameFunction
    extends Object
    implements org.apache.camel.component.properties.PropertiesFunction
    The apply method is called on each message to determine in which Elasticsearch index messages should end up into. http://unicolet.blogspot.com/2015/01/camel-elasticsearch-create-timestamped.html Created: User: unicoletti Date: 11:12 AM 6/24/15
    • Constructor Detail

      • IndexNameFunction

        public IndexNameFunction()
      • IndexNameFunction

        public IndexNameFunction​(String dateFormat)
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.apache.camel.component.properties.PropertiesFunction
      • apply

        public String apply​(String remainder)
        Specified by:
        apply in interface org.apache.camel.component.properties.PropertiesFunction