Package org.trellisldp.ext.cassandra
Class CassandraMementoService
- java.lang.Object
-
- org.trellisldp.ext.cassandra.CassandraMementoService
-
- All Implemented Interfaces:
MementoService
@ApplicationScoped public class CassandraMementoService extends Object implements MementoService
AMementoServicethat stores Mementos in a Cassandra table.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_CASSANDRA_VERSIONINGThe configuration key for enabling/disabling memento handling.
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description CompletionStage<Resource>get(IRI id, Instant time)CompletionStage<SortedSet<Instant>>mementos(IRI id)default Resourceparse(Row metadata, org.slf4j.Logger log, IRI id)CompletionStage<Void>put(Resource r)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.trellisldp.api.MementoService
put
-
-
-
-
Field Detail
-
CONFIG_CASSANDRA_VERSIONING
public static final String CONFIG_CASSANDRA_VERSIONING
The configuration key for enabling/disabling memento handling.- See Also:
- Constant Field Values
-
-
Method Detail
-
put
public CompletionStage<Void> put(Resource r)
- Specified by:
putin interfaceMementoService
-
mementos
public CompletionStage<SortedSet<Instant>> mementos(IRI id)
- Specified by:
mementosin interfaceMementoService
-
get
public CompletionStage<Resource> get(IRI id, Instant time)
- Specified by:
getin interfaceMementoService
-
-