Class FilesChangedExclusiveReadLockStrategy

java.lang.Object
org.apache.camel.component.file.azure.strategy.FilesChangedExclusiveReadLockStrategy
All Implemented Interfaces:
org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>

public class FilesChangedExclusiveReadLockStrategy extends Object implements org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    acquireExclusiveReadLock(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> operations, org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> file, org.apache.camel.Exchange exchange)
     
    long
     
    long
     
    long
     
    long
     
    boolean
     
    void
    prepareOnStartup(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> tGenericFileOperations, org.apache.camel.component.file.GenericFileEndpoint<com.azure.storage.file.share.models.ShareFileItem> tGenericFileEndpoint)
     
    void
    releaseExclusiveReadLockOnAbort(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> operations, org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> file, org.apache.camel.Exchange exchange)
     
    void
    releaseExclusiveReadLockOnCommit(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> operations, org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> file, org.apache.camel.Exchange exchange)
     
    void
    releaseExclusiveReadLockOnRollback(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> operations, org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FilesChangedExclusiveReadLockStrategy

      public FilesChangedExclusiveReadLockStrategy()
  • Method Details

    • prepareOnStartup

      public void prepareOnStartup(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> tGenericFileOperations, org.apache.camel.component.file.GenericFileEndpoint<com.azure.storage.file.share.models.ShareFileItem> tGenericFileEndpoint) throws Exception
      Specified by:
      prepareOnStartup in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
      Throws:
      Exception
    • acquireExclusiveReadLock

      public boolean acquireExclusiveReadLock(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> operations, org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> file, org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      acquireExclusiveReadLock in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
      Throws:
      Exception
    • releaseExclusiveReadLockOnAbort

      public void releaseExclusiveReadLockOnAbort(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> operations, org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> file, org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      releaseExclusiveReadLockOnAbort in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
      Throws:
      Exception
    • releaseExclusiveReadLockOnRollback

      public void releaseExclusiveReadLockOnRollback(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> operations, org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> file, org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      releaseExclusiveReadLockOnRollback in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
      Throws:
      Exception
    • releaseExclusiveReadLockOnCommit

      public void releaseExclusiveReadLockOnCommit(org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem> operations, org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> file, org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      releaseExclusiveReadLockOnCommit in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
      Throws:
      Exception
    • getTimeout

      public long getTimeout()
    • setTimeout

      public void setTimeout(long timeout)
      Specified by:
      setTimeout in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
    • getCheckInterval

      public long getCheckInterval()
    • setCheckInterval

      public void setCheckInterval(long checkInterval)
      Specified by:
      setCheckInterval in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
    • setReadLockLoggingLevel

      public void setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel)
      Specified by:
      setReadLockLoggingLevel in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
    • setMarkerFiler

      public void setMarkerFiler(boolean markerFiler)
      Specified by:
      setMarkerFiler in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
    • setDeleteOrphanLockFiles

      public void setDeleteOrphanLockFiles(boolean deleteOrphanLockFiles)
      Specified by:
      setDeleteOrphanLockFiles in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.azure.storage.file.share.models.ShareFileItem>
    • 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)