Interface IKafkaSingletonOptions
- Namespace
- MASES.EntityFrameworkCore.KNet.Infrastructure.Internal
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public interface IKafkaSingletonOptions : ISingletonOptions
- Inherited Members
- Extension Methods
Properties
ApplicationId
The application id
string? ApplicationId { get; }
Property Value
BootstrapServers
The bootstrap servers of the Apache Kafka cluster
string? BootstrapServers { get; }
Property Value
ConsumerConfig
The optional ConsumerConfigBuilder used when UseCompactedReplicator is true
ConsumerConfigBuilder? ConsumerConfig { get; }
Property Value
DatabaseName
Database name means whe prefix of the topics associated to the instance of KafkaDbContext
string? DatabaseName { get; }
Property Value
DefaultConsumerInstances
Default consumr instances used in conjunction with UseCompactedReplicator
int? DefaultConsumerInstances { get; }
Property Value
- int?
DefaultNumPartitions
Default number of partitions associated to each topic
int DefaultNumPartitions { get; }
Property Value
DefaultReplicationFactor
Default replication factor associated to each topic
int DefaultReplicationFactor { get; }
Property Value
KeySerDesSelectorType
The optional Type to use for key serialization selection
Default value is DefaultKEFCoreSerDes.Key<T>, any custom Type shall implement ISerDesSelector<T>
Type? KeySerDesSelectorType { get; }
Property Value
OnChangeEvent
The optional handler to be used to receive notification when the back-end triggers a data change.
Action<EntityTypeChanged>? OnChangeEvent { get; }
Property Value
Remarks
Works if UseCompactedReplicator is true
ProducerConfig
The optional ProducerConfigBuilder
ProducerConfigBuilder? ProducerConfig { get; }
Property Value
StreamsConfig
The optional StreamsConfig used when UseCompactedReplicator is false
StreamsConfigBuilder? StreamsConfig { get; }
Property Value
TopicConfig
The optional TopicConfigBuilder used when topics shall be created
TopicConfigBuilder? TopicConfig { get; }
Property Value
UseByteBufferDataTransfer
Setting this property to true the engine prefers to use ByteBuffer data exchange in serializer instances
bool UseByteBufferDataTransfer { get; }
Property Value
UseCompactedReplicator
Use KNetCompactedReplicator<K, V> instead of Apache Kafka Streams
bool UseCompactedReplicator { get; }
Property Value
UseDeletePolicyForTopic
Use delete cleanup policy when a topic is created
bool UseDeletePolicyForTopic { get; }
Property Value
UseEnumeratorWithPrefetch
Setting this property to true the engine prefers to use enumerator instances able to do a prefetch on data speeding up execution
bool UseEnumeratorWithPrefetch { get; }
Property Value
Remarks
Used only if UseCompactedReplicator is false and UseKNetStreams is true, not available in EFCore 6.
UseKNetStreams
Use KNet version of Apache Kafka Streams instead of standard Apache Kafka Streams
bool UseKNetStreams { get; }
Property Value
UseNameMatching
Set to false to avoid match of IEntityTypes using Name
bool UseNameMatching { get; }
Property Value
UsePersistentStorage
Use persistent storage when Apache Kafka Streams is in use
bool UsePersistentStorage { get; }
Property Value
ValueContainerType
The optional Type to use as value container
Default value is DefaultValueContainer<TKey>, any custom Type shall implement IValueContainer<T>
Type? ValueContainerType { get; }
Property Value
ValueSerDesSelectorType
The optional Type to use for value serialization selection
Default value is DefaultKEFCoreSerDes.ValueContainer<T>, any custom Type shall implement ISerDesSelector<T>
Type? ValueSerDesSelectorType { get; }