View Source ExWal.Recycler.ETS (ex_wal v0.3.0)
An ETS based WAL file recycler.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type log() :: ExWal.Models.VirtualLog.t()
@type log_num() :: ExWal.Models.VirtualLog.log_num()
@type p() :: GenServer.name() | pid()
@type t() :: %ExWal.Recycler.ETS{ capacity: non_neg_integer(), logs: [log()], max: log_num(), min: log_num(), name: Agent.name(), size: non_neg_integer() }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec initialize(name :: p(), capacity :: non_neg_integer()) :: :ok