Class IndexNameFunction

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

    public class IndexNameFunction
    extends java.lang.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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(java.lang.String remainder)  
      java.lang.String apply​(java.lang.String remainder, java.util.Date date)  
      static java.lang.String apply​(java.text.SimpleDateFormat df, java.lang.String remainder, java.util.Date date)  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_INDEX_DATE_FORMAT

        public static final java.lang.String DEFAULT_INDEX_DATE_FORMAT
        See Also:
        Constant Field Values
    • Constructor Detail

      • IndexNameFunction

        public IndexNameFunction()
      • IndexNameFunction

        public IndexNameFunction​(java.lang.String dateFormat)
    • Method Detail

      • getName

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

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

        public java.lang.String apply​(java.lang.String remainder,
                                      java.util.Date date)
      • apply

        public static java.lang.String apply​(java.text.SimpleDateFormat df,
                                             java.lang.String remainder,
                                             java.util.Date date)