Interface Configuration
- All Known Implementing Classes:
ConfigurationImpl
public interface Configuration
Configuration interface for the ProtoStream library. This object is not mutable once built. Use the
Configuration.Builder
in order to create a new instance.- Since:
- 2.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final StringThe name of the TypeId annotation. -
Method Summary
Modifier and TypeMethodDescriptionstatic Configuration.Builderbuilder()booleanFlag that indicates in out of sequence reads should be logged as warnings.booleanFlag that indicates in out of sequence writes should be logged as warnings.intThe max nested message depth to apply to allGeneratedMarshallerBases.The type of validation done when updating schemas in theSerializationContext.boolean
-
Field Details
-
DEFAULT_MAX_NESTED_DEPTH
static final int DEFAULT_MAX_NESTED_DEPTH- See Also:
-
TYPE_ID_ANNOTATION
The name of the TypeId annotation. This optional annotation defines a unique positive integer type identifier for each message or enum type. This can be used alternatively instead of the fully qualified type name during marshalling of a WrappedMessage to save bandwidth. Values in range [0..65535] are reserved for internal use by Protostream and related projects from the Infinispan organisation.This annotation is pre-defined in all configurations. You do not have to define it manually.
- See Also:
-
-
Method Details
-
logOutOfSequenceReads
boolean logOutOfSequenceReads()Flag that indicates in out of sequence reads should be logged as warnings. This istrueby default. -
logOutOfSequenceWrites
boolean logOutOfSequenceWrites()Flag that indicates in out of sequence writes should be logged as warnings. This istrueby default. -
maxNestedMessageDepth
int maxNestedMessageDepth()The max nested message depth to apply to allGeneratedMarshallerBases. This value is used as way to avoid recurring on circular dependencies without the need to maintain the list of already visited entities. Default toDEFAULT_MAX_NESTED_DEPTH -
schemaValidation
Configuration.SchemaValidation schemaValidation()The type of validation done when updating schemas in theSerializationContext. Default toConfiguration.SchemaValidation.STRICT -
wrapCollectionElements
boolean wrapCollectionElements() -
annotationsConfig
Configuration.AnnotationsConfig annotationsConfig() -
builder
-