public class FtpChangedExclusiveReadLockStrategy extends Object implements org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
| Constructor and Description |
|---|
FtpChangedExclusiveReadLockStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acquireExclusiveReadLock(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
org.apache.camel.Exchange exchange) |
long |
getCheckInterval() |
long |
getMinAge() |
long |
getMinLength() |
long |
getTimeout() |
boolean |
isFastExistsCheck() |
void |
prepareOnStartup(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> tGenericFileOperations,
org.apache.camel.component.file.GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> tGenericFileEndpoint) |
void |
releaseExclusiveReadLockOnAbort(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
org.apache.camel.Exchange exchange) |
void |
releaseExclusiveReadLockOnCommit(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
org.apache.camel.Exchange exchange) |
void |
releaseExclusiveReadLockOnRollback(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> 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 void prepareOnStartup(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> tGenericFileOperations,
org.apache.camel.component.file.GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> tGenericFileEndpoint)
throws Exception
prepareOnStartup in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>Exceptionpublic boolean acquireExclusiveReadLock(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
org.apache.camel.Exchange exchange)
throws Exception
acquireExclusiveReadLock in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>Exceptionpublic void releaseExclusiveReadLockOnAbort(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
org.apache.camel.Exchange exchange)
throws Exception
releaseExclusiveReadLockOnAbort in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>Exceptionpublic void releaseExclusiveReadLockOnRollback(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
org.apache.camel.Exchange exchange)
throws Exception
releaseExclusiveReadLockOnRollback in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>Exceptionpublic void releaseExclusiveReadLockOnCommit(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
org.apache.camel.Exchange exchange)
throws Exception
releaseExclusiveReadLockOnCommit in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>Exceptionpublic long getTimeout()
public void setTimeout(long timeout)
setTimeout in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>public long getCheckInterval()
public void setCheckInterval(long checkInterval)
setCheckInterval in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>public void setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel)
setReadLockLoggingLevel in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>public void setMarkerFiler(boolean markerFiler)
setMarkerFiler in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>public void setDeleteOrphanLockFiles(boolean deleteOrphanLockFiles)
setDeleteOrphanLockFiles in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>public long getMinLength()
public void setMinLength(long minLength)
public long getMinAge()
public void setMinAge(long minAge)
public boolean isFastExistsCheck()
public void setFastExistsCheck(boolean fastExistsCheck)
Apache Camel