blob: 3e57577e55015b92b1bcdc98a23cd37472972568 [file] [log] [blame]
namespace DotPulsar.Abstractions
{
/// <summary>
/// A reader building abstraction
/// </summary>
public interface IReaderBuilder
{
/// <summary>
/// Set the reader name. This is optional.
/// </summary>
IReaderBuilder ReaderName(string name);
/// <summary>
/// Number of messages that will be prefetched. Default is 1000.
/// </summary>
IReaderBuilder MessagePrefetchCount(uint count);
/// <summary>
/// The initial reader position is set to the specified message id. This is required.
/// </summary>
IReaderBuilder StartMessageId(MessageId messageId);
/// <summary>
/// Set the topic for this reader. This is required.
/// </summary>
IReaderBuilder Topic(string topic);
/// <summary>
/// Create the reader
/// </summary>
IReader Create();
}
}