java.lang.Object
me.ahoo.cosid.store.StoreConfig
What a
StoreProvider opens a store with (06-stores.md §1). Immutable; built with
builder(String, String), the only way to create one, so fields can be added with a default
(api-freeze.md §4).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds aStoreConfig;StoreConfig.Builder.build()checks the fields. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StoreConfig.BuilderA builder of a store config.client()An existing connection object (DataSource, a Lettuce connection,MongoClient,CuratorFramework).booleaninthashCode()name()The store name in the runtime spec.options()The backend options, such asinitSchema.timeout()The operation timeout, enforced by the backend's own mechanism.toString()type()The store type.
-
Field Details
-
DEFAULT_TIMEOUT
The default operation timeout: 2s.
-
-
Method Details
-
builder
A builder of a store config.- Parameters:
name- the store name in the runtime spectype- the store type- Returns:
- the builder
-
name
The store name in the runtime spec.- Returns:
- the name
-
type
The store type.- Returns:
- the type
-
timeout
The operation timeout, enforced by the backend's own mechanism.- Returns:
- the timeout, positive; default
DEFAULT_TIMEOUT
-
options
The backend options, such asinitSchema.- Returns:
- the options, unmodifiable; default none
-
client
An existing connection object (DataSource, a Lettuce connection,MongoClient,CuratorFramework).- Returns:
- the client; when empty (the default) the provider creates its own from the options and closes it
-
equals
-
hashCode
public int hashCode() -
toString
-