Class FileTailingMessageProducerSupport.FileTailingEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.integration.events.IntegrationEvent
org.springframework.integration.file.event.FileIntegrationEvent
org.springframework.integration.file.tail.FileTailingMessageProducerSupport.FileTailingEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FileTailingMessageProducerSupport.FileTailingIdleEvent
Enclosing class:
FileTailingMessageProducerSupport

public static class FileTailingMessageProducerSupport.FileTailingEvent
extends FileIntegrationEvent
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class org.springframework.integration.events.IntegrationEvent

    cause

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors 
    Constructor Description
    FileTailingEvent​(java.lang.Object source, java.lang.String message, java.io.File file)  
  • Method Summary

    Modifier and Type Method Description
    java.io.File getFile()  
    java.lang.String getMessage()
    Return the text message emitted from the underlying tailing producer (Apache Commons or one of OS natives).
    java.lang.String toString()  

    Methods inherited from class org.springframework.integration.events.IntegrationEvent

    getCause, getSourceAsType

    Methods inherited from class org.springframework.context.ApplicationEvent

    getTimestamp

    Methods inherited from class java.util.EventObject

    getSource

    Methods inherited from class java.lang.Object

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

    • FileTailingEvent

      public FileTailingEvent​(java.lang.Object source, java.lang.String message, java.io.File file)
  • Method Details

    • getMessage

      public java.lang.String getMessage()
      Return the text message emitted from the underlying tailing producer (Apache Commons or one of OS natives).

      Note that for the same event type (e.g. 'file not found') the text may be different depending on the producer and its platform.

      Returns:
      the original text of the tailing event
    • getFile

      public java.io.File getFile()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class org.springframework.integration.events.IntegrationEvent