Interface IStreamsManager
- Namespace
- MASES.EntityFrameworkCore.KNet.Storage.Internal
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
Central interface for stream management
public interface IStreamsManager
Methods
CreateAndStartTopology(IKEFCoreDatabase)
Creates and start the topology
void CreateAndStartTopology(IKEFCoreDatabase database)
Parameters
databaseIKEFCoreDatabase
EnsureSynchronized(IEntityType, long)
Verify if local instance is synchronized with the IKEFCoreCluster instance
bool? EnsureSynchronized(IEntityType entity, long timeout)
Parameters
entityIEntityTypetimeoutlong
Returns
- bool?
PartitionOffsetWritten(string, int, long)
Invoked when a new partiton/offset is received for topic
void PartitionOffsetWritten(string topic, int partition, long offset)
Parameters
topicstringThe topic associated to the IEntityType
partitionintThe partiton where the data was stored
offsetlongThe offset received
Register(IEntityTypeProducer, IKEFCoreDatabase, IEntityType)
Register an instance of IKEFCoreDatabase
void Register(IEntityTypeProducer producer, IKEFCoreDatabase database, IEntityType entity)
Parameters
producerIEntityTypeProducerThe IEntityTypeProducer requesting the operation
databaseIKEFCoreDatabaseentityIEntityTypeAssociated IEntityType
StopTopology()
Stop topology waiting for a new CreateAndStartTopology(IKEFCoreDatabase)
bool StopTopology()
Returns
Unregister(IEntityTypeProducer, IKEFCoreDatabase)
Unregister an instance of IKEFCoreDatabase
void Unregister(IEntityTypeProducer producer, IKEFCoreDatabase database)
Parameters
producerIEntityTypeProducerThe IEntityTypeProducer requesting the operation
databaseIKEFCoreDatabase