Package me.ahoo.cosid.store.remote
Class RemoteStoreProvider
java.lang.Object
me.ahoo.cosid.store.remote.RemoteStoreProvider
- All Implemented Interfaces:
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.
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TYPE
The store type.- See Also:
-
-
Constructor Details
-
RemoteStoreProvider
public RemoteStoreProvider()
-
-
Method Details
-
type
- Specified by:
typein interfaceme.ahoo.cosid.store.StoreProvider
-
options
- Specified by:
optionsin interfaceme.ahoo.cosid.store.StoreProvider
-
open
public me.ahoo.cosid.store.Store open(me.ahoo.cosid.store.StoreConfig config) - Specified by:
openin interfaceme.ahoo.cosid.store.StoreProvider
-