java.lang.Object
io.xpipe.core.impl.NamedStore
- All Implemented Interfaces:
DataStore
A store that refers to another store in the X-Pipe storage.
The referenced store has to be resolved by the caller manually, as this class does not act as a resolver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<DS extends DataStore>
DSasNeeded()Casts this instance to the required type without checking whether a cast is possible.booleandelete()Determines on optional default name for this data store that is used when determining a suitable default name for a data source.Determines the last modified of this data store if this data store supports it.voidvalidate()Performs a validation of this data store.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.xpipe.core.store.DataStore
canOpen, checkComplete, getFlow, isComplete, isContentExclusivelyAccessible, shouldPersist, shouldSave
-
Constructor Details
-
NamedStore
public NamedStore()
-
-
Method Details
-
validate
Description copied from interface:DataStorePerforms a validation of this data store.This validation can include one of multiple things: - Sanity checks of individual properties - Existence checks - Connection checks
All in all, a successful execution of this method should almost guarantee that the data store can be successfully accessed in the near future.
Note that some checks may take a long time, for example if a connection has to be validated. The caller should therefore expect a runtime of multiple seconds when calling this method.
-
delete
-
asNeeded
Description copied from interface:DataStoreCasts this instance to the required type without checking whether a cast is possible. -
determineDefaultName
Description copied from interface:DataStoreDetermines on optional default name for this data store that is used when determining a suitable default name for a data source.- Specified by:
determineDefaultNamein interfaceDataStore
-
determineLastModified
Description copied from interface:DataStoreDetermines the last modified of this data store if this data store supports it.- Specified by:
determineLastModifiedin interfaceDataStore
-