Class AbstractValueSetSupplier<T>

    • Constructor Detail

      • AbstractValueSetSupplier

        public AbstractValueSetSupplier​(T resource,
                                        Duration refreshRate)
                                 throws IOException
        Constructor.
        Parameters:
        resource - the resource holding the value set
        refreshRate - the refresh rate (how often should the file be re-read?)
        Throws:
        IOException - if the file can not be read or if the JSON can not be successfully parsed
    • Method Detail

      • getValueSet

        protected abstract ValueSet getValueSet​(T resource)
                                         throws IOException
        Reads the value set from the resource.
        Returns:
        the value set
        Throws:
        IOException - for read errors
      • getResourceString

        protected abstract String getResourceString​(T resource)
        Returns a string representation of the resource being handled.
        Returns:
        the resource string