Class DefaultBatchBackingStore<I,​T>

    • Field Detail

      • lastUpdate

        @Nullable
        private Instant lastUpdate
        Last time the metadata was updated.
      • lastRefresh

        @Nullable
        private Instant lastRefresh
        Last time a refresh cycle occurred.
      • originalValue

        @Nullable
        private byte[] originalValue
        The bytes of the original loaded metadata.
    • Constructor Detail

      • DefaultBatchBackingStore

        public DefaultBatchBackingStore()
    • Method Detail

      • getLastUpdate

        @Nullable
        public Instant getLastUpdate()
        Description copied from interface: BatchBackingStore
        Get the time at which this batch backing store was successfully reloaded. That is, completely cleared and new entries added.
        Specified by:
        getLastUpdate in interface BatchBackingStore<I,​T>
        Returns:
        the last update time.
      • getLastRefresh

        @Nullable
        public Instant getLastRefresh()
        Description copied from interface: BatchBackingStore
        Get the time the last refresh of this backing store was attempted.
        Specified by:
        getLastRefresh in interface BatchBackingStore<I,​T>
        Returns:
        the last attempted refresh time.
      • setLastUpdate

        public void setLastUpdate​(@Nullable
                                  Instant updatedAt)
        Description copied from interface: BatchBackingStore
        Set the time at which this batch backing store was successfully reloaded/updated.
        Specified by:
        setLastUpdate in interface BatchBackingStore<I,​T>
        Parameters:
        updatedAt - the time it was last updated.
      • setLastRefresh

        public void setLastRefresh​(@Nullable
                                   Instant refreshedAt)
        Description copied from interface: BatchBackingStore
        Set the time at which the last refresh was attempted.
        Specified by:
        setLastRefresh in interface BatchBackingStore<I,​T>
        Parameters:
        refreshedAt - the refreshed time.
      • getOriginalValue

        @Nullable
        public byte[] getOriginalValue()
        Description copied from interface: BatchBackingStore
        Gets the source bytes of the source before it was parsed.
        Specified by:
        getOriginalValue in interface BatchBackingStore<I,​T>
        Returns:
        the source bytes.
      • setOriginalValue

        public void setOriginalValue​(@Nullable
                                     byte[] original)
        Description copied from interface: BatchBackingStore
        Sets the source bytes of the source before it was parsed.
        Specified by:
        setOriginalValue in interface BatchBackingStore<I,​T>
        Parameters:
        original - the source bytes.