Interface TimestampPersistence
-
public interface TimestampPersistenceDefines operations for managing metadata of streams.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description akka.stream.javadsl.Source<Optional<akka.japi.Pair<Instant,String>>,akka.NotUsed>getTaggedTimestamp()Retrieve the tagged timestamp if any exists in the collection.akka.stream.javadsl.Source<Optional<Instant>,akka.NotUsed>getTimestampAsync()Retrieve the timestamp in the persistence.akka.stream.javadsl.Source<akka.Done,akka.NotUsed>setTaggedTimestamp(Instant timestamp, String tag)Update the timestamp with a tag.akka.stream.javadsl.Source<akka.NotUsed,akka.NotUsed>setTimestamp(Instant timestamp)Updates the timestamp in the persistence..
-
-
-
Method Detail
-
setTimestamp
akka.stream.javadsl.Source<akka.NotUsed,akka.NotUsed> setTimestamp(Instant timestamp)
Updates the timestamp in the persistence..- Parameters:
timestamp- The timestamp.- Returns:
- a
Sourceholding the publisher to execute the operation.
-
setTaggedTimestamp
akka.stream.javadsl.Source<akka.Done,akka.NotUsed> setTaggedTimestamp(Instant timestamp, @Nullable String tag)
Update the timestamp with a tag.- Parameters:
timestamp- the timestamp to persist.tag- the tag.- Returns:
- source that completes after the update completes.
-
getTimestampAsync
akka.stream.javadsl.Source<Optional<Instant>,akka.NotUsed> getTimestampAsync()
Retrieve the timestamp in the persistence.- Returns:
- a
Sourceof theInstantstored in the persistence.
-
-