Interface CachedManagedDataSourceInterface

All Superinterfaces:
CommonDataSource, DataSource, Wrapper

public interface CachedManagedDataSourceInterface extends DataSource
  • Method Details

    • isExpired

      boolean isExpired()
      Validates if the Datasource has been expired and can no longer be used.
    • expire

      void expire()
      Sets the state of the Datasource
    • isInUse

      boolean isInUse()
      Validate whther or not the Datasaource is being used.
      Returns:
    • setInUseBy

      void setInUseBy(List<String> ownerList)
      Sets the owner of this Datasource
      Parameters:
      ownerList -
    • addInUseBy

      void addInUseBy(String ownerName)
      Adds an owner to this Datasource
      Parameters:
      ownerName -
    • removeInUseBy

      void removeInUseBy(String ownerName)
      Removes an owner to this Datasource
      Parameters:
      ownerName -
    • getHash

      String getHash()
      Gets the Datasource hash
    • setHash

      void setHash(String dataSource)
      Sets the Datasource hash
      Parameters:
      dataSource -
    • tryInvalidateDataSource

      void tryInvalidateDataSource(String invalidatedBy)
      Try to invalidate the Datasource
      Parameters:
      invalidatedBy -