Package org.projectnessie.gc.contents
Class LiveContentSet
- java.lang.Object
-
- org.projectnessie.gc.contents.LiveContentSet
-
@Immutable public abstract class LiveContentSet extends java.lang.ObjectRepresents a set of identified live contents from anidentify-live-contents run.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLiveContentSet.Status
-
Constructor Summary
Constructors Constructor Description LiveContentSet()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longaddFileDeletions(java.util.stream.Stream<FileReference> files)Records the given files to be later returned byfetchFileDeletions(), ignores duplicates.voidassociateBaseLocations(java.lang.String contentId, java.util.Collection<java.net.URI> baseLocations)static org.projectnessie.gc.contents.ImmutableLiveContentSet.Builderbuilder()abstract java.time.Instantcreated()voiddelete()abstract java.lang.StringerrorMessage()abstract java.time.InstantexpiryCompleted()abstract java.time.InstantexpiryStarted()java.util.stream.Stream<java.net.URI>fetchAllBaseLocations()java.util.stream.Stream<java.net.URI>fetchBaseLocations(@NotNull java.lang.String contentId)java.util.stream.Stream<java.lang.String>fetchContentIds()java.util.stream.Stream<ContentReference>fetchContentReferences(@NotNull java.lang.String contentId)longfetchDistinctContentIdCount()java.util.stream.Stream<FileReference>fetchFileDeletions()Returns theaddFileDeletions(Stream)recorded file deletions (aka deferred deletes) grouped by base path.FileDeleterfileDeleter()LiveContentSetfinishedExpireContents(@NotNull java.time.Instant finished, java.lang.Throwable failure)abstract java.util.UUIDid()abstract java.time.InstantidentifyCompleted()LiveContentSetstartExpireContents(@NotNull java.time.Instant started)abstract LiveContentSet.Statusstatus()org.projectnessie.gc.contents.ImmutableLiveContentSet.Builderunbuild()
-
-
-
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()
-
status
public abstract LiveContentSet.Status status()
-
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 byfetchFileDeletions(), ignores duplicates.- Returns:
- the number of actually added files
-
fetchFileDeletions
@MustBeClosed public java.util.stream.Stream<FileReference> fetchFileDeletions()
Returns theaddFileDeletions(Stream)recorded file deletions (aka deferred deletes) grouped by base path.
-
fileDeleter
public FileDeleter fileDeleter()
-
-