ack_ref() = '?NOTHING_TO_ACK' | {segno(), ID::pos_integer()}
bytes() = non_neg_integer()
config() = #{dir => dir(), seg_bytes => bytes(), mem_only => boolean(), max_total_bytes => bytes()}
count() = non_neg_integer()
dir() = filename()
filename() = file:filename_all()
item() = term()
marshaller() = fun((item()) -> binary())
abstract datatype: q()
segno() = pos_integer()
sizer() = fun((item()) -> bytes())
w_cur() = #{segno := segno(), bytes := bytes(), count := count(), fd := file:fd()}
| ack/2 | Asynch-ly write the consumed item Segment number + ID to a file. |
| append/2 | |
| bytes/1 | |
| close/1 | |
| committer_loop/2 | |
| count/1 | |
| is_empty/1 | |
| open/1 | |
| peek/1 | peek the queue front item. |
| pop/2 | pop out at least one item from the queue. |
Asynch-ly write the consumed item Segment number + ID to a file.
committer_loop(HeadSegno, Dir) -> any()
is_empty(Q) -> any()
peek the queue front item.
pop out at least one item from the queue.
volume limitted by bytes_limit and count_limit.
Generated by EDoc