ChunkUploadConfig
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
Initializes positive transport, reservation, metadata, and opportunistic-cleanup limits.
Returns the server-authoritative maximum number of bytes accepted in one append request.
Returns the fixed lifetime, in seconds, assigned when a session is created.
Returns the maximum number of incomplete chunk sessions reserved at one time.
Returns the maximum sum of declared bytes reserved by incomplete sessions.
Returns the maximum number of append operations accepted by one session.
Returns the maximum encoded byte count accepted for application-owned session context.
Returns how old an unlocked staging snapshot must be before automatic orphan cleanup.
Returns the maximum number of temporary entries examined by one opportunistic cleanup pass.
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.
chunkBytes
int
chunkBytes()
Returns the server-authoritative maximum number of bytes accepted in one append request.
ttlSeconds
int
ttlSeconds()
Returns the fixed lifetime, in seconds, assigned when a session is created.
maxActiveSessions
int
maxActiveSessions()
Returns the maximum number of incomplete chunk sessions reserved at one time.
maxReservedBytes
int
maxReservedBytes()
Returns the maximum sum of declared bytes reserved by incomplete sessions.
maxChunksPerSession
int
maxChunksPerSession()
Returns the maximum number of append operations accepted by one session.
maxContextBytes
int
maxContextBytes()
Returns the maximum encoded byte count accepted for application-owned session context.
stagingOrphanTtlSeconds
int
stagingOrphanTtlSeconds()
Returns how old an unlocked staging snapshot must be before automatic orphan cleanup.
cleanupBatchSize
int
cleanupBatchSize()
Returns the maximum number of temporary entries examined by one opportunistic cleanup pass.