Class FileWrittenEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.integration.events.IntegrationEvent
org.springframework.integration.file.remote.server.FileServerEvent
org.springframework.integration.sftp.server.ApacheMinaSftpEvent
org.springframework.integration.sftp.server.FileWrittenEvent
All Implemented Interfaces:
java.io.Serializable

public class FileWrittenEvent
extends ApacheMinaSftpEvent
An event that is emitted when a file is written.
Since:
5.2
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
    FileWrittenEvent​(java.lang.Object source, java.lang.String remoteHandle, java.nio.file.Path file, int dataLen, java.lang.Throwable thrown)  
  • Method Summary

    Modifier and Type Method Description
    int getDataLen()  
    java.nio.file.Path getFile()  
    java.lang.String getRemoteHandle()  
    java.lang.String toString()  

    Methods inherited from class org.springframework.integration.sftp.server.ApacheMinaSftpEvent

    getSession

    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

    • FileWrittenEvent

      public FileWrittenEvent​(java.lang.Object source, java.lang.String remoteHandle, java.nio.file.Path file, int dataLen, @Nullable java.lang.Throwable thrown)
  • Method Details

    • getRemoteHandle

      public java.lang.String getRemoteHandle()
    • getFile

      @Nullable public java.nio.file.Path getFile()
    • getDataLen

      public int getDataLen()
    • toString

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