Class BaseParameterUpdater

    • Constructor Detail

      • BaseParameterUpdater

        public BaseParameterUpdater​(UpdateStorage updateStorage)
        Initialize this updater with a custom update storage
        Parameters:
        updateStorage - the update storage to use
      • BaseParameterUpdater

        public BaseParameterUpdater()
        Initializes this updater with InMemoryUpdateStorage
    • Method Detail

      • isReady

        public boolean isReady()
        Returns true if the updater is ready for a new array
        Specified by:
        isReady in interface ParameterServerUpdater
        Returns:
      • isAsync

        public boolean isAsync()
        Returns true if the given updater is async or synchronous updates
        Specified by:
        isAsync in interface ParameterServerUpdater
        Returns:
        true if the given updater is async or synchronous updates
      • reset

        public void reset()
        Reset internal counters such as number of updates accumulated.
        Specified by:
        reset in interface ParameterServerUpdater
      • numUpdates

        public int numUpdates()
        Num updates passed through the updater
        Specified by:
        numUpdates in interface ParameterServerUpdater
        Returns:
        the number of updates