Class TrackedStorageImpl

java.lang.Object
com.refinedmods.refinedstorage.api.storage.AbstractProxyStorage
com.refinedmods.refinedstorage.api.storage.tracked.TrackedStorageImpl
All Implemented Interfaces:
ExtractableStorage, InsertableStorage, Storage, StorageView, TrackedStorage

@API(status=STABLE, since="2.0.0-milestone.1.4") public class TrackedStorageImpl extends AbstractProxyStorage implements TrackedStorage
  • Constructor Details

    • TrackedStorageImpl

      public TrackedStorageImpl(Storage delegate, LongSupplier clock)
      A new tracked storage with an in-memory repository.
      Parameters:
      delegate - the storage that is being decorated
      clock - a supplier for unix timestamps
    • TrackedStorageImpl

      public TrackedStorageImpl(Storage delegate, TrackedStorageRepository repository, LongSupplier clock)
      Parameters:
      delegate - the storage that is being decorated
      repository - a repository for persisting and retrieving tracked resources
      clock - a supplier for unix timestamps
  • Method Details