State Storage
Using the XOOM Symbio Key-Value and NoSQL storage.
Configuring and Starting the StateStore
StateStore// using the class simple name
final String productStoreName = Product.class.getSimpleName();
StateTypeStateStoreMap.stateTypeToStoreName(Product.class, productStoreName);
// using the scheme name
final String productStoreName =
"tbl_xoom_symbio_state_" +
Product.class.getSimpleName();
StateTypeStateStoreMap.stateTypeToStoreName(Product.class, productStoreName);import io.vlingo.xoom.symbio.EntryAdapterProvider;
EntryAdapterProvider provider = EntryAdapterProvider.instance(world);
// ProductDefinedAdapter is a io.vlingo.xoom.symbio.EntryAdapter
provider.registerAdapter(ProductDefined.class, new ProductDefinedAdapter());
// ProductStateAdapter is a io.vlingo.xoom.symbio.StateAdapter
provider.registerAdapter(ProductState.class, new ProductStateAdapter());Writing State and Source Instances
State and Source InstancesReading State Instances
State InstancesStreaming Over Entry Instances of Source Types
Entry Instances of Source TypesCreating StateStore Database Tables
StateStore Database TablesUsing Relational Databases with JDBC
NoSQL Storage Engines
Last updated