public abstract class ObjectEntity<S extends io.vlingo.symbio.store.object.StateObject,C> extends Entity<S,C>
| Modifier | Constructor and Description |
|---|---|
protected |
ObjectEntity()
Construct my default state.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(S state)
Apply
state to myself. |
protected void |
apply(S state,
List<io.vlingo.symbio.Source<C>> sources)
Apply
state and sources to myself. |
protected void |
apply(S state,
List<io.vlingo.symbio.Source<C>> sources,
io.vlingo.symbio.Metadata metadata)
Apply
state and sources to myself. |
protected void |
apply(S state,
io.vlingo.symbio.Source<C> source)
Apply
state and source to myself. |
protected void |
apply(S state,
io.vlingo.symbio.Source<C> source,
io.vlingo.symbio.Metadata metadata)
Apply
state, sources, with metadata to myself. |
protected List<io.vlingo.symbio.Source<C>> |
asList(io.vlingo.symbio.Source<C>... sources)
Answer a
List<Source<C>> from the varargs sources. |
abstract String |
id()
Answer my unique identity, which much be provided by
my concrete extender by overriding.
|
protected String |
idFrom(String separator,
String... idSegments)
Answer a representation of a number of segments as a
composite id.
|
protected io.vlingo.symbio.Metadata |
metadata()
Answer my
Metadata. |
protected abstract void |
stateObject(S stateObject)
Received by my extender when my state object has been preserved and restored.
|
applied, applied, currentVersion, nextVersionpublic abstract String id()
protected void apply(S state, List<io.vlingo.symbio.Source<C>> sources, io.vlingo.symbio.Metadata metadata)
state and sources to myself.state - the Object state to preservesources - the List<Source<C>> instances to applymetadata - the Metadata to apply along with sourceprotected void apply(S state, io.vlingo.symbio.Source<C> source, io.vlingo.symbio.Metadata metadata)
state, sources, with metadata to myself.state - the Object state to preservesource - the Source<C> to applymetadata - the Metadata to apply along with sourceprotected void apply(S state)
state to myself.state - the Object state to preserveprotected void apply(S state, List<io.vlingo.symbio.Source<C>> sources)
state and sources to myself.state - the S state to preservesources - the List<Source<C>> to applyprotected void apply(S state, io.vlingo.symbio.Source<C> source)
state and source to myself.state - the T typed state to applysource - the Source<C> instances to apply@SafeVarargs protected final List<io.vlingo.symbio.Source<C>> asList(io.vlingo.symbio.Source<C>... sources)
List<Source<C>> from the varargs sources.sources - the varargs Source<C> of sources to answer as a List<Source<C>>List<Source<C>>protected String idFrom(String separator, String... idSegments)
id() would use
this method if the its id is built from segments.separator - the String separator the insert between segmentsidSegments - the varargs String of one or more segmentsprotected io.vlingo.symbio.Metadata metadata()
Metadata. Must override if Metadata is to be supported.protected abstract void stateObject(S stateObject)
stateObject - the T typed state objectCopyright © 2020. All rights reserved.