final class ChunkUploadConfig (View source)

Holds safe default limits for chunk reservations, transport, metadata, and temporary cleanup.

Applications with exceptional workloads may replace the container singleton while profile-specific maximum file sizes remain independently enforced.

Constants

DEFAULT_CHUNK_BYTES

DEFAULT_TTL_SECONDS

DEFAULT_MAX_ACTIVE_SESSIONS

DEFAULT_MAX_RESERVED_BYTES

DEFAULT_MAX_CHUNKS_PER_SESSION

DEFAULT_MAX_CONTEXT_BYTES

DEFAULT_STAGING_ORPHAN_TTL_SECONDS

DEFAULT_CLEANUP_BATCH_SIZE

Methods

__construct(int $chunkBytes = self::DEFAULT_CHUNK_BYTES, int $ttlSeconds = self::DEFAULT_TTL_SECONDS, int $maxActiveSessions = self::DEFAULT_MAX_ACTIVE_SESSIONS, int $maxReservedBytes = self::DEFAULT_MAX_RESERVED_BYTES, int $maxChunksPerSession = self::DEFAULT_MAX_CHUNKS_PER_SESSION, int $maxContextBytes = self::DEFAULT_MAX_CONTEXT_BYTES, int $stagingOrphanTtlSeconds = self::DEFAULT_STAGING_ORPHAN_TTL_SECONDS, int $cleanupBatchSize = self::DEFAULT_CLEANUP_BATCH_SIZE)

Initializes positive transport, reservation, metadata, and opportunistic-cleanup limits.

int

Returns the server-authoritative maximum number of bytes accepted in one append request.

int
int

Returns the fixed lifetime, in seconds, assigned when a session is created.

int
int

Returns the maximum number of incomplete chunk sessions reserved at one time.

int
int

Returns the maximum sum of declared bytes reserved by incomplete sessions.

int
int

Returns the maximum number of append operations accepted by one session.

int
int

Returns the maximum encoded byte count accepted for application-owned session context.

int
int

Returns how old an unlocked staging snapshot must be before automatic orphan cleanup.

int
int

Returns the maximum number of temporary entries examined by one opportunistic cleanup pass.

int

Details

__construct

__construct(int $chunkBytes = self::DEFAULT_CHUNK_BYTES, int $ttlSeconds = self::DEFAULT_TTL_SECONDS, int $maxActiveSessions = self::DEFAULT_MAX_ACTIVE_SESSIONS, int $maxReservedBytes = self::DEFAULT_MAX_RESERVED_BYTES, int $maxChunksPerSession = self::DEFAULT_MAX_CHUNKS_PER_SESSION, int $maxContextBytes = self::DEFAULT_MAX_CONTEXT_BYTES, int $stagingOrphanTtlSeconds = self::DEFAULT_STAGING_ORPHAN_TTL_SECONDS, int $cleanupBatchSize = self::DEFAULT_CLEANUP_BATCH_SIZE)

Initializes positive transport, reservation, metadata, and opportunistic-cleanup limits.

Parameters

int $chunkBytes
int $ttlSeconds
int $maxActiveSessions
int $maxReservedBytes
int $maxChunksPerSession
int $maxContextBytes
int $stagingOrphanTtlSeconds
int $cleanupBatchSize

chunkBytes

int chunkBytes()

Returns the server-authoritative maximum number of bytes accepted in one append request.

Return Value

int

ttlSeconds

int ttlSeconds()

Returns the fixed lifetime, in seconds, assigned when a session is created.

Return Value

int

maxActiveSessions

int maxActiveSessions()

Returns the maximum number of incomplete chunk sessions reserved at one time.

Return Value

int

maxReservedBytes

int maxReservedBytes()

Returns the maximum sum of declared bytes reserved by incomplete sessions.

Return Value

int

maxChunksPerSession

int maxChunksPerSession()

Returns the maximum number of append operations accepted by one session.

Return Value

int

maxContextBytes

int maxContextBytes()

Returns the maximum encoded byte count accepted for application-owned session context.

Return Value

int

stagingOrphanTtlSeconds

int stagingOrphanTtlSeconds()

Returns how old an unlocked staging snapshot must be before automatic orphan cleanup.

Return Value

int

cleanupBatchSize

int cleanupBatchSize()

Returns the maximum number of temporary entries examined by one opportunistic cleanup pass.

Return Value

int