Interface ServerStatisticsStorage

  • All Known Implementing Classes:
    ServerStatisticsStorageImpl

    public interface ServerStatisticsStorage
    Created by Andrey Titov on 1/30/17.
    • Method Detail

      • publish

        void publish​(@NotNull
                     ServerStatisticsStorage.Key key,
                     long value,
                     long timestamp)
        Persists a value to the storage
        Parameters:
        key - key of this value
        value - value to persist
        timestamp - timestamp to persist
      • retrieve

        @NotNull
        List<Pair<Long,​Long>> retrieve​(@NotNull
                                             ServerStatisticsStorage.Key key,
                                             long since,
                                             long till)
        Retrieves all values published in provided time range
        Parameters:
        key - key of these values
        since - start of the time range
        till - end of the time range
        Returns:
        list of pairs {value,timestamp}