public class NoopMementoService extends java.lang.Object implements MementoService
| Constructor and Description |
|---|
NoopMementoService() |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<Resource> |
get(org.apache.commons.rdf.api.IRI identifier,
java.time.Instant time)
Fetch a Memento resource for the given time.
|
java.util.concurrent.CompletionStage<java.util.SortedSet<java.time.Instant>> |
mementos(org.apache.commons.rdf.api.IRI identifier)
Get the times for all of the Mementos of the given resource.
|
java.util.concurrent.CompletionStage<java.lang.Void> |
put(Resource resource)
Create a new Memento for a resource.
|
java.util.concurrent.CompletionStage<java.lang.Void> |
put(ResourceService resourceService,
org.apache.commons.rdf.api.IRI identifier)
Create a new Memento for a resource, retrieved from a
ResourceService. |
public java.util.concurrent.CompletionStage<java.lang.Void> put(ResourceService resourceService, org.apache.commons.rdf.api.IRI identifier)
MementoServiceResourceService.put in interface MementoServiceresourceService - the resource service.identifier - the identifier.public java.util.concurrent.CompletionStage<java.lang.Void> put(Resource resource)
MementoServiceput in interface MementoServiceresource - the resourceCompletionStage will complete exceptionally and can be handled with
CompletionStage.handle(java.util.function.BiFunction<? super T, java.lang.Throwable, ? extends U>), CompletionStage.exceptionally(java.util.function.Function<java.lang.Throwable, ? extends T>) or similar methods.public java.util.concurrent.CompletionStage<Resource> get(org.apache.commons.rdf.api.IRI identifier, java.time.Instant time)
MementoServiceget in interface MementoServiceidentifier - the resource identifiertime - the requested timepublic java.util.concurrent.CompletionStage<java.util.SortedSet<java.time.Instant>> mementos(org.apache.commons.rdf.api.IRI identifier)
MementoServicemementos in interface MementoServiceidentifier - the resource identifier