Bedrock.DataPlane.Log.Shale.SegmentRecycler (bedrock v0.5.2)
View SourceManages segment file allocation and recycling for the Shale log.
Summary
Functions
Return a segment to the recycler. The recycler will attempt to delete the segment if it has too many on-hand.
Ask the recycler for a fresh segment. The recycler will return one of the segments that it has on-hand, and will attempt to allocate a new one if necessary.
Types
@type server() :: GenServer.server()
Functions
Return a segment to the recycler. The recycler will attempt to delete the segment if it has too many on-hand.
Ask the recycler for a fresh segment. The recycler will return one of the segments that it has on-hand, and will attempt to allocate a new one if necessary.
@spec child_spec(term()) :: Supervisor.child_spec()