Interface MicroStreamRestService

All Known Implementing Classes:
DefaultMicroStreamRestService

public interface MicroStreamRestService
MicroStream REST service.
Since:
1.0.0
Author:
Tim Yates
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull one.microstream.storage.restadapter.types.StorageRestAdapter
    getAdapter(@NonNull String name)
    Get the single adapter for a given storage name.
    @NonNull Optional<one.microstream.storage.restadapter.types.StorageRestAdapter>
    Returns a single adaptor if only one is available.
  • Method Details

    • getAdapter

      @NonNull @NonNull one.microstream.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<one.microstream.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.