Interface Storage<T>
- Type Parameters:
T- the supported type for storing
- All Known Implementing Classes:
JsonPathStorage,PathStorage
Deprecated, for removal: This API element is subject to removal in a future version.
No replacement
A
Storage allows load and save
operations on objects. The mode of achieving this such as where the states
are stored, null-safety, stored format and others will depend on the
implementation.- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionload()Deprecated, for removal: This API element is subject to removal in a future version.Loads the stored state as a new object.default CompletableFuture<? extends T> Deprecated, for removal: This API element is subject to removal in a future version.Loads the stored state asynchronously.voidDeprecated, for removal: This API element is subject to removal in a future version.Stores the state of a given object.default CompletableFuture<Void> Deprecated, for removal: This API element is subject to removal in a future version.Stores the state of a given object asynchronously.
-
Method Details
-
load
Deprecated, for removal: This API element is subject to removal in a future version.Loads the stored state as a new object.- Returns:
- a new object loaded with the stored state
- Throws:
Exception- thrown when an implementation encountered a checked exception; the actual type may depend on the implementationNullPointerException- thrown when an implementation does not recognizenullas a valid destination; usually it isn't
-
loadAsync
Deprecated, for removal: This API element is subject to removal in a future version.Loads the stored state asynchronously.- Returns:
- the load future
- See Also:
-
save
Deprecated, for removal: This API element is subject to removal in a future version.Stores the state of a given object.- Parameters:
obj- the object to store the state of- Throws:
Exception- thrown when an implementation encountered a checked exception; the actual type may depend on the implementationNullPointerException- thrown when an implementation does not recognizenullas a valid state to store
-
saveAsync
Deprecated, for removal: This API element is subject to removal in a future version.Stores the state of a given object asynchronously.- Parameters:
obj- the object to store the state of- Returns:
- the save future
- See Also:
-