Class PersistenceSchema

java.lang.Object
io.superdurable.dex.PersistenceSchema

public final class PersistenceSchema extends Object
Declares the Attributes, Channels, and Streams that belong to a Flow.

Return one schema from Flow.getPersistenceSchema(). Definitions are immutable after the schema is created. The varargs and single-list factories classify definitions automatically; the two-list factory additionally validates that its first list contains only Attributes and its second list contains only Channels.

public PersistenceSchema getPersistenceSchema() {
    return PersistenceSchema.of(counter, orderStatus, commands);
}