ReservationManager

class ReservationManager(val totalCapacityBytes: Long)

Manages memory usage for the destination.

TODO: Better initialization of available runtime memory?

TODO: Some degree of logging/monitoring around how accurate we're actually being?

Constructors

Link copied to clipboard
constructor(totalCapacityBytes: Long)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun release(bytes: Long)
Link copied to clipboard
suspend fun reserve(bytes: Long)
suspend fun <T> reserve(bytes: Long, reservedFor: T): Reserved<T>
Link copied to clipboard
suspend fun <T> reserveOrThrow(bytes: Long, reservedFor: T): Reserved<T>