org.apache.camel.component.file.remote.strategy
Class SftpChangedExclusiveReadLockStrategy

java.lang.Object
  extended by 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 Summary
SftpChangedExclusiveReadLockStrategy()
           
 
Method Summary
 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)
           
 long getCheckInterval()
           
 long getTimeout()
           
 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)
           
 void releaseExclusiveReadLock(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFileOperations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFile, org.apache.camel.Exchange exchange)
           
 void setCheckInterval(long checkInterval)
           
 void setTimeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpChangedExclusiveReadLockStrategy

public SftpChangedExclusiveReadLockStrategy()
Method Detail

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

releaseExclusiveReadLock

public void releaseExclusiveReadLock(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFileOperations,
                                     org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFile,
                                     org.apache.camel.Exchange exchange)
                              throws Exception
Specified by:
releaseExclusiveReadLock 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>


Apache CAMEL