java.lang.Object
io.xpipe.core.impl.NamedStore
- All Implemented Interfaces:
DataStore
A store that refers to another store in the XPipe 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
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
public void 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
public boolean delete() -
asNeeded
Description copied from interface:DataStoreCasts this instance to the required type without checking whether a cast is possible.
-