Record Class EntityMetadata.RootConfiguration
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.EntityMetadata.RootConfiguration
- Enclosing class:
EntityMetadata
public static record EntityMetadata.RootConfiguration(EntityMetadata.RootKind kind, io.fluxzero.common.api.modeling.ModelConflictPolicy conflictPolicy, AutomaticModelHandling automaticHandling, boolean eventSourced, boolean ignoreUnknownEvents, int snapshotPeriod, int maxSnapshotCount, boolean cached, int cachingDepth, int checkpointPeriod, CommitPolicy commitPolicy, EventPublication eventPublication, EventPublicationStrategy publicationStrategy, boolean searchable, boolean materializeGraph, GraphProjection graphProjection, String collection, String timestampPath, String endPath)
extends Record
Aggregate-neutral persistence settings of an explicitly annotated root.
-
Constructor Summary
ConstructorsConstructorDescriptionRootConfiguration(EntityMetadata.RootKind kind, io.fluxzero.common.api.modeling.ModelConflictPolicy conflictPolicy, AutomaticModelHandling automaticHandling, boolean eventSourced, boolean ignoreUnknownEvents, int snapshotPeriod, int maxSnapshotCount, boolean cached, int cachingDepth, int checkpointPeriod, CommitPolicy commitPolicy, EventPublication eventPublication, EventPublicationStrategy publicationStrategy, boolean searchable, boolean materializeGraph, GraphProjection graphProjection, String collection, String timestampPath, String endPath) Creates an instance of aRootConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theautomaticHandlingrecord component.booleancached()Returns the value of thecachedrecord component.intReturns the value of thecachingDepthrecord component.intReturns the value of thecheckpointPeriodrecord component.Returns the value of thecollectionrecord component.Returns the value of thecommitPolicyrecord component.io.fluxzero.common.api.modeling.ModelConflictPolicyReturns the value of theconflictPolicyrecord component.endPath()Returns the value of theendPathrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventPublicationrecord component.booleanReturns the value of theeventSourcedrecord component.Returns the value of thegraphProjectionrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreUnknownEventsrecord component.kind()Returns the value of thekindrecord component.booleanReturns the value of thematerializeGraphrecord component.intReturns the value of themaxSnapshotCountrecord component.Returns the value of thepublicationStrategyrecord component.booleanReturns the value of thesearchablerecord component.intReturns the value of thesnapshotPeriodrecord component.snapshotSettings(boolean documentFallback) Resolves the shared periodic snapshot policy for this persisted root.Returns the value of thetimestampPathrecord component.final StringtoString()Returns a string representation of this record class.transitionSettings(Apply apply) Resolves root and handler-level transition settings without retaining either annotation shape.
-
Constructor Details
-
RootConfiguration
public RootConfiguration(EntityMetadata.RootKind kind, io.fluxzero.common.api.modeling.ModelConflictPolicy conflictPolicy, AutomaticModelHandling automaticHandling, boolean eventSourced, boolean ignoreUnknownEvents, int snapshotPeriod, int maxSnapshotCount, boolean cached, int cachingDepth, int checkpointPeriod, CommitPolicy commitPolicy, EventPublication eventPublication, EventPublicationStrategy publicationStrategy, boolean searchable, boolean materializeGraph, GraphProjection graphProjection, String collection, String timestampPath, String endPath) Creates an instance of aRootConfigurationrecord class.- Parameters:
kind- the value for thekindrecord componentconflictPolicy- the value for theconflictPolicyrecord componentautomaticHandling- the value for theautomaticHandlingrecord componenteventSourced- the value for theeventSourcedrecord componentignoreUnknownEvents- the value for theignoreUnknownEventsrecord componentsnapshotPeriod- the value for thesnapshotPeriodrecord componentmaxSnapshotCount- the value for themaxSnapshotCountrecord componentcached- the value for thecachedrecord componentcachingDepth- the value for thecachingDepthrecord componentcheckpointPeriod- the value for thecheckpointPeriodrecord componentcommitPolicy- the value for thecommitPolicyrecord componenteventPublication- the value for theeventPublicationrecord componentpublicationStrategy- the value for thepublicationStrategyrecord componentsearchable- the value for thesearchablerecord componentmaterializeGraph- the value for thematerializeGraphrecord componentgraphProjection- the value for thegraphProjectionrecord componentcollection- the value for thecollectionrecord componenttimestampPath- the value for thetimestampPathrecord componentendPath- the value for theendPathrecord component
-
-
Method Details
-
transitionSettings
Resolves root and handler-level transition settings without retaining either annotation shape. -
snapshotSettings
Resolves the shared periodic snapshot policy for this persisted root. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
conflictPolicy
public io.fluxzero.common.api.modeling.ModelConflictPolicy conflictPolicy()Returns the value of theconflictPolicyrecord component.- Returns:
- the value of the
conflictPolicyrecord component
-
automaticHandling
Returns the value of theautomaticHandlingrecord component.- Returns:
- the value of the
automaticHandlingrecord component
-
eventSourced
public boolean eventSourced()Returns the value of theeventSourcedrecord component.- Returns:
- the value of the
eventSourcedrecord component
-
ignoreUnknownEvents
public boolean ignoreUnknownEvents()Returns the value of theignoreUnknownEventsrecord component.- Returns:
- the value of the
ignoreUnknownEventsrecord component
-
snapshotPeriod
public int snapshotPeriod()Returns the value of thesnapshotPeriodrecord component.- Returns:
- the value of the
snapshotPeriodrecord component
-
maxSnapshotCount
public int maxSnapshotCount()Returns the value of themaxSnapshotCountrecord component.- Returns:
- the value of the
maxSnapshotCountrecord component
-
cached
public boolean cached()Returns the value of thecachedrecord component.- Returns:
- the value of the
cachedrecord component
-
cachingDepth
public int cachingDepth()Returns the value of thecachingDepthrecord component.- Returns:
- the value of the
cachingDepthrecord component
-
checkpointPeriod
public int checkpointPeriod()Returns the value of thecheckpointPeriodrecord component.- Returns:
- the value of the
checkpointPeriodrecord component
-
commitPolicy
Returns the value of thecommitPolicyrecord component.- Returns:
- the value of the
commitPolicyrecord component
-
eventPublication
Returns the value of theeventPublicationrecord component.- Returns:
- the value of the
eventPublicationrecord component
-
publicationStrategy
Returns the value of thepublicationStrategyrecord component.- Returns:
- the value of the
publicationStrategyrecord component
-
searchable
public boolean searchable()Returns the value of thesearchablerecord component.- Returns:
- the value of the
searchablerecord component
-
materializeGraph
public boolean materializeGraph()Returns the value of thematerializeGraphrecord component.- Returns:
- the value of the
materializeGraphrecord component
-
graphProjection
Returns the value of thegraphProjectionrecord component.- Returns:
- the value of the
graphProjectionrecord component
-
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
timestampPath
Returns the value of thetimestampPathrecord component.- Returns:
- the value of the
timestampPathrecord component
-
endPath
Returns the value of theendPathrecord component.- Returns:
- the value of the
endPathrecord component
-