Package io.micronaut.eclipsestore.rest
Interface EclipseStoreRestService
- All Known Implementing Classes:
DefaultEclipseStoreRestService
public interface EclipseStoreRestService
EclipseStore REST service.
- Since:
- 1.0.0
- Author:
- Tim Yates
-
Method Summary
Modifier and TypeMethodDescription@NonNull org.eclipse.store.storage.restadapter.types.StorageRestAdapter
getAdapter
(@NonNull String name) Get the single adapter for a given storage name.@NonNull Optional<org.eclipse.store.storage.restadapter.types.StorageRestAdapter>
Returns a single adaptor if only one is available.
-
Method Details
-
getAdapter
@NonNull @NonNull org.eclipse.store.storage.restadapter.types.StorageRestAdapter getAdapter(@NonNull @NonNull String name) Get the single adapter for a given storage name.- Parameters:
name
- the storage name- Returns:
- the adapter
-
singleAdapter
@NonNull @NonNull Optional<org.eclipse.store.storage.restadapter.types.StorageRestAdapter> singleAdapter()Returns a single adaptor if only one is available.- Returns:
- The adaptor if only one is defined, or an empty optional if multiple are defined.
-