@Singleton public class DefaultMicroStreamRestService extends java.lang.Object implements MicroStreamRestService
MicroStreamRestService
.Constructor and Description |
---|
DefaultMicroStreamRestService(io.micronaut.context.BeanContext beanContext,
java.util.Collection<EmbeddedStorageConfigurationProvider> storageFoundations)
Creates a service that allows us to query storage managers by name.
|
Modifier and Type | Method and Description |
---|---|
one.microstream.storage.restadapter.types.StorageRestAdapter |
getAdapter(java.lang.String name)
Get the single adapter for a given storage name.
|
java.util.Optional<one.microstream.storage.restadapter.types.StorageRestAdapter> |
singleAdapter()
Returns a single adaptor if only one is available.
|
public DefaultMicroStreamRestService(io.micronaut.context.BeanContext beanContext, java.util.Collection<EmbeddedStorageConfigurationProvider> storageFoundations)
beanContext
- the bean context to resolve storage managersstorageFoundations
- the bound storage foundations@NonNull public one.microstream.storage.restadapter.types.StorageRestAdapter getAdapter(@NonNull java.lang.String name)
MicroStreamRestService
getAdapter
in interface MicroStreamRestService
name
- the storage name@NonNull public java.util.Optional<one.microstream.storage.restadapter.types.StorageRestAdapter> singleAdapter()
MicroStreamRestService
singleAdapter
in interface MicroStreamRestService