Module emmap_queue

Persistent FIFO queue The FIFO queue can be used for single producer single consumer application without the use of a gen-server, and also for multiple producers single consumer application when using a gen-server.

Authors: Serge Aleynikov.

Description

Persistent FIFO queue The FIFO queue can be used for single producer single consumer application without the use of a gen-server, and also for multiple producers single consumer application when using a gen-server. The queue is stored in a memory-mapped file, and it automatically grows if the messages are not dequeued from the queue. See test cases at the end of this module for sample use cases.

Function Index

close/1
dequeue/1
enqueue/2
handle_call/3
handle_cast/2
handle_info/2
info/1
init/1
is_empty/1
length/1
open/3
pop/1
pop_and_purge/1
purge_queue/1
push/2
start_link/4
terminate/2

Function Details

close/1

close(Mem) -> any()

dequeue/1

dequeue(Name) -> any()

enqueue/2

enqueue(Name, Term) -> any()

handle_call/3

handle_call(X1, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(X1, State) -> any()

info/1

info(Name) -> any()

init/1

init(X1) -> any()

is_empty/1

is_empty(Mem) -> any()

length/1

length(Mem) -> any()

open/3

open(Filename, Size, Opts) -> any()

pop/1

pop(Mem) -> any()

pop_and_purge/1

pop_and_purge(Mem) -> any()

purge_queue/1

purge_queue(Mem) -> any()

push/2

push(Mem, Term) -> any()

start_link/4

start_link(Name, Filename, SegmSize, Opts) -> any()

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc