Class StoreSpec

java.lang.Object
me.ahoo.cosid.runtime.StoreSpec

public final class StoreSpec extends Object
A store of a RuntimeSpec, declared once and referred to by name. Immutable; built with builder(String), the only way to create one, so fields can be added with a default (api-freeze.md ยง4).
  • Field Details

    • DEFAULT_TIMEOUT

      public static final Duration DEFAULT_TIMEOUT
      The default operation timeout: 2s.
  • Method Details

    • builder

      public static StoreSpec.Builder builder(String type)
      A builder of a store.
      Parameters:
      type - the store type, matched to a StoreProvider
      Returns:
      the builder
    • type

      public String type()
      The store type, matched to a StoreProvider.
      Returns:
      the type
    • timeout

      public Duration timeout()
      The operation timeout.
      Returns:
      the timeout; default DEFAULT_TIMEOUT
    • options

      public Map<String,Object> options()
      The backend options.
      Returns:
      the options, unmodifiable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object