Class LiveContentSet


  • @Immutable
    public abstract class LiveContentSet
    extends java.lang.Object
    Represents a set of identified live contents from an identify-live-contents run.
    • Constructor Detail

      • LiveContentSet

        public LiveContentSet()
    • Method Detail

      • builder

        public static org.projectnessie.gc.contents.ImmutableLiveContentSet.Builder builder()
      • unbuild

        public org.projectnessie.gc.contents.ImmutableLiveContentSet.Builder unbuild()
      • id

        public abstract java.util.UUID id()
      • created

        public abstract java.time.Instant created()
      • identifyCompleted

        @Nullable
        public abstract java.time.Instant identifyCompleted()
      • expiryStarted

        @Nullable
        public abstract java.time.Instant expiryStarted()
      • expiryCompleted

        @Nullable
        public abstract java.time.Instant expiryCompleted()
      • errorMessage

        @Nullable
        public abstract java.lang.String errorMessage()
      • delete

        public void delete()
      • fetchDistinctContentIdCount

        public long fetchDistinctContentIdCount()
      • fetchContentIds

        @MustBeClosed
        public java.util.stream.Stream<java.lang.String> fetchContentIds()
      • fetchContentReferences

        @MustBeClosed
        public java.util.stream.Stream<ContentReference> fetchContentReferences​(@NotNull
                                                                                @NotNull java.lang.String contentId)
      • associateBaseLocations

        public void associateBaseLocations​(java.lang.String contentId,
                                           java.util.Collection<java.net.URI> baseLocations)
      • fetchAllBaseLocations

        @MustBeClosed
        public java.util.stream.Stream<java.net.URI> fetchAllBaseLocations()
      • fetchBaseLocations

        @MustBeClosed
        public java.util.stream.Stream<java.net.URI> fetchBaseLocations​(@NotNull
                                                                        @NotNull java.lang.String contentId)
      • startExpireContents

        public LiveContentSet startExpireContents​(@NotNull
                                                  @NotNull java.time.Instant started)
      • finishedExpireContents

        public LiveContentSet finishedExpireContents​(@NotNull
                                                     @NotNull java.time.Instant finished,
                                                     @Nullable
                                                     java.lang.Throwable failure)
      • addFileDeletions

        public long addFileDeletions​(java.util.stream.Stream<FileReference> files)
        Records the given files to be later returned by fetchFileDeletions(), ignores duplicates.
        Returns:
        the number of actually added files
      • fetchFileDeletions

        @MustBeClosed
        public java.util.stream.Stream<FileReference> fetchFileDeletions()
        Returns the addFileDeletions(Stream) recorded file deletions (aka deferred deletes) grouped by base path.