메소드 | 설명 | |
---|---|---|
Append ( String topic, |
Append payload to specified topic and partition
|
|
Dispose ( ) : void | ||
Flush ( ) : void |
Flush to OS page cache (data will be visible for consumers)
|
|
FlushOnDisk ( ) : void |
Flush on disk to store data permanently
|
|
GetNumberOfPartitionsForTopic ( String topic ) : |
Calculates number of partitions for specified topic
|
|
ReadMessages ( String topic, |
Read and parse all message that can be found in bytes, starting from byte from specified and
|
|
ReadMessagesBlock ( String topic, |
Read bytes, starting from byte from specified and
|
|
Store ( |
Creates Store
|
|
ValidatePartitionNumber ( String topic, |
Returns true of partition number is valid for current broker configuration
|
메소드 | 설명 | |
---|---|---|
GetTopic ( String topicName ) : |
Returns Topic for specified name. Will be created, if not exists.
|
|
Init ( ) : void |
Builds internal cache of topics, that this storage contains
|
|
InternalFlush ( System.Boolean flushToDisk ) : void |
Flush streams to page cache or disk, depending on param.
|
public Append ( String topic, |
||
topic | String | |
partition | ||
payload | byte | |
리턴 | void |
public GetNumberOfPartitionsForTopic ( String topic ) : |
||
topic | String | |
리턴 |
public ReadMessages ( String topic, |
||
topic | String | |
partition | ||
offset | ||
blockLength | ||
리턴 | IEnumerable |
public ReadMessagesBlock ( String topic, |
||
topic | String | |
partition | ||
offset | ||
blockLength | ||
리턴 |
public Store ( |
||
configuration | ||
리턴 | System |
public ValidatePartitionNumber ( String topic, |
||
topic | String | |
partition | ||
리턴 | bool |