Package org.projectnessie.gc.contents
Interface AddContents
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface AddContents extends java.lang.AutoCloseableUsed byIdentifyLiveContentsto push identified live contents and produce a set of live-content.Instances of this interface are obtained from
LiveContentSetsRepository.newAddContents().An identify run pushes all identified live contents to
addLiveContent(Stream)and callsfinished()on successful completion andfinishedExceptionally(Throwable)on failure. Must alsoclose()this instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longaddLiveContent(@NotNull java.util.stream.Stream<ContentReference> contentReference)voidclose()Closes this instance.java.time.Instantcreated()voidfinished()voidfinishedExceptionally(@NotNull java.lang.Throwable e)java.util.UUIDid()
-
-
-
Method Detail
-
addLiveContent
long addLiveContent(@NotNull @NotNull java.util.stream.Stream<ContentReference> contentReference)
-
finished
void finished()
-
finishedExceptionally
void finishedExceptionally(@NotNull @NotNull java.lang.Throwable e)
-
created
java.time.Instant created()
-
id
java.util.UUID id()
-
close
void close()
Closes this instance. Marks the identified set of contents as failed, if neitherfinished()norfinishedExceptionally(Throwable)were called.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-