public class SftpChangedExclusiveReadLockStrategy extends Object implements org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
| Constructor and Description |
|---|
SftpChangedExclusiveReadLockStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getMinLength() |
long |
getTimeout() |
boolean |
isFastExistsCheck() |
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> operations,
org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file,
org.apache.camel.Exchange exchange) |
void |
setCheckInterval(long checkInterval) |
void |
setFastExistsCheck(boolean fastExistsCheck) |
void |
setMarkerFiler(boolean markerFiler) |
void |
setMinLength(long minLength) |
void |
setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel) |
void |
setTimeout(long timeout) |
public SftpChangedExclusiveReadLockStrategy()
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
prepareOnStartup in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>Exceptionpublic 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
acquireExclusiveReadLock in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>Exceptionpublic void releaseExclusiveReadLock(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
releaseExclusiveReadLock in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>Exceptionpublic long getTimeout()
public void setTimeout(long timeout)
setTimeout in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>public long getCheckInterval()
public void setCheckInterval(long checkInterval)
setCheckInterval in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>public void setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel)
setReadLockLoggingLevel in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>public long getMinLength()
public void setMinLength(long minLength)
public boolean isFastExistsCheck()
public void setFastExistsCheck(boolean fastExistsCheck)
public void setMarkerFiler(boolean markerFiler)
setMarkerFiler in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>Apache Camel