public interface BackEnd
Modifier and Type | Method and Description |
---|---|
void |
beginUpdates()
Begins updates.
|
void |
close()
Closes.
|
void |
commit()
Commits.
|
StoreValues |
createResponse(StoreValuesQuery query,
Optional<Identity> identity)
Creates store values for a store query.
|
int |
delete(VersionedValue versionedValue)
Deletes a point value.
|
void |
endUpdates()
Ends updates.
|
default Archiver |
newArchiver()
Returns a new archiver.
|
void |
open()
Opens.
|
default int |
purge(UUID[] pointUUIDs,
TimeInterval timeInterval)
Purges points values.
|
void |
rollback()
Rolls back.
|
boolean |
setUp(TheStoreServiceAppImpl theStoreAppImpl)
Sets up the back end.
|
boolean |
supportsCount()
Asks if the back end supports count.
|
default boolean |
supportsPurge()
Asks if the back end supports purge.
|
void |
tearDown()
Tears down what has been set up.
|
void |
update(VersionedValue versionedValue)
Updates a point value.
|
void beginUpdates()
void close()
void commit()
@Nonnull @CheckReturnValue StoreValues createResponse(@Nonnull StoreValuesQuery query, @Nonnull Optional<Identity> identity)
query
- The store query.identity
- The optional requesting identity.@CheckReturnValue int delete(@Nonnull VersionedValue versionedValue)
versionedValue
- The point value to delete.void endUpdates()
@Nonnull @CheckReturnValue default Archiver newArchiver()
void open() throws ServiceNotAvailableException
ServiceNotAvailableException
- On failure.@CheckReturnValue default int purge(@Nonnull UUID[] pointUUIDs, @Nonnull TimeInterval timeInterval)
pointUUIDs
- The UUID of the points to purge.timeInterval
- A time interval.void rollback()
@CheckReturnValue boolean setUp(@Nonnull TheStoreServiceAppImpl theStoreAppImpl)
theStoreAppImpl
- The TheStore application instance.@CheckReturnValue boolean supportsCount()
@CheckReturnValue default boolean supportsPurge()
void tearDown()
void update(@Nonnull VersionedValue versionedValue)
versionedValue
- The point value to update.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.