Class RemoteStoreProvider

java.lang.Object
me.ahoo.cosid.store.remote.RemoteStoreProvider
All Implemented Interfaces:
me.ahoo.cosid.store.StoreProvider

public final class RemoteStoreProvider extends Object implements me.ahoo.cosid.store.StoreProvider
Opens RemoteStores, type "remote" (06-stores.md §1), registered with ServiceLoader.

Options (08-remote.md §4):

  • baseUrl: the server, required;
  • token: the bearer token, none by default;
  • connectTimeout: 5s by default;
  • requestTimeout: the timeout of each call, StoreConfig.timeout() by default.
Durations are a Duration, a number of milliseconds, or text: ISO-8601 (PT5S) or a number with ms, s, m or h. The store takes no client.
  • Field Details

  • Constructor Details

    • RemoteStoreProvider

      public RemoteStoreProvider()
  • Method Details

    • type

      public String type()
      Specified by:
      type in interface me.ahoo.cosid.store.StoreProvider
    • options

      public Set<String> options()
      Specified by:
      options in interface me.ahoo.cosid.store.StoreProvider
    • open

      public me.ahoo.cosid.store.Store open(me.ahoo.cosid.store.StoreConfig config)
      Specified by:
      open in interface me.ahoo.cosid.store.StoreProvider