Class SftpChangedExclusiveReadLockStrategy

java.lang.Object
org.apache.camel.component.file.remote.strategy.SftpChangedExclusiveReadLockStrategy
All Implemented Interfaces:
org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>

public class SftpChangedExclusiveReadLockStrategy extends Object implements org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
  • Constructor Details

    • SftpChangedExclusiveReadLockStrategy

      public SftpChangedExclusiveReadLockStrategy()
  • Method Details

    • prepareOnStartup

      public void prepareOnStartup(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFileOperations, org.apache.camel.component.file.GenericFileEndpoint<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFileEndpoint) throws Exception
      Specified by:
      prepareOnStartup in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
      Throws:
      Exception
    • acquireExclusiveReadLock

      public boolean acquireExclusiveReadLock(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      acquireExclusiveReadLock in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
      Throws:
      Exception
    • releaseExclusiveReadLockOnAbort

      public void releaseExclusiveReadLockOnAbort(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      releaseExclusiveReadLockOnAbort in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
      Throws:
      Exception
    • releaseExclusiveReadLockOnRollback

      public void releaseExclusiveReadLockOnRollback(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      releaseExclusiveReadLockOnRollback in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
      Throws:
      Exception
    • releaseExclusiveReadLockOnCommit

      public void releaseExclusiveReadLockOnCommit(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      releaseExclusiveReadLockOnCommit in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
      Throws:
      Exception
    • getTimeout

      public long getTimeout()
    • setTimeout

      public void setTimeout(long timeout)
      Specified by:
      setTimeout in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
    • getCheckInterval

      public long getCheckInterval()
    • setCheckInterval

      public void setCheckInterval(long checkInterval)
      Specified by:
      setCheckInterval in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
    • setReadLockLoggingLevel

      public void setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel)
      Specified by:
      setReadLockLoggingLevel in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
    • getMinLength

      public long getMinLength()
    • setMinLength

      public void setMinLength(long minLength)
    • getMinAge

      public long getMinAge()
    • setMinAge

      public void setMinAge(long minAge)
    • isFastExistsCheck

      public boolean isFastExistsCheck()
    • setFastExistsCheck

      public void setFastExistsCheck(boolean fastExistsCheck)
    • setMarkerFiler

      public void setMarkerFiler(boolean markerFiler)
      Specified by:
      setMarkerFiler in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
    • setDeleteOrphanLockFiles

      public void setDeleteOrphanLockFiles(boolean deleteOrphanLockFiles)
      Specified by:
      setDeleteOrphanLockFiles in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>