Interface IConfig


public interface IConfig
Value holder for the returned configurations. The getVersion() attribute allows clients to perform their own caching of results calculated from data.

For each 2 configs, it's guaranteed, that

      c1.getVersion() == c2.getVersion() => c1.getData() == c2.getData()
 
.
Author:
dobisekm
  • Method Summary

    Modifier and Type
    Method
    Description
     
    long
    This is the last repository revision for current configuration.
    long
    During runtime, it's guaranteed that version for one configuration never decreases.
  • Method Details

    • getVersion

      long getVersion()
      During runtime, it's guaranteed that version for one configuration never decreases. Therefore clients, whose results depend on more configurations can use sum of their versions as the timestamp.
      Returns:
      The version number of this data.
    • getData

      Object getData()
      Returns:
      The data as produced by the IDataHandler.
    • getRevision

      long getRevision()
      This is the last repository revision for current configuration. Revision is calculated through all of the possible configuration locations. If revisions of two IConfig instances are different, then configurations are different, but not vice versa.
      Returns:
      last repository revision, or -1 if configuration does not exist.