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 |
getMinAge() |
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 |
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) |
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) |
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) |
void |
setCheckInterval(long checkInterval) |
void |
setDeleteOrphanLockFiles(boolean deleteOrphanLockFiles) |
void |
setFastExistsCheck(boolean fastExistsCheck) |
void |
setMarkerFiler(boolean markerFiler) |
void |
setMinAge(long minAge) |
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>
Exception
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
acquireExclusiveReadLock
in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
Exception
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
releaseExclusiveReadLockOnAbort
in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
Exception
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
releaseExclusiveReadLockOnRollback
in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
Exception
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
releaseExclusiveReadLockOnCommit
in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
Exception
public 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 long getMinAge()
public void setMinAge(long minAge)
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>
public void setDeleteOrphanLockFiles(boolean deleteOrphanLockFiles)
setDeleteOrphanLockFiles
in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
Apache Camel