Package org.glassfish.jersey.server
Class ChunkedOutput.Builder<Y>
java.lang.Object
org.glassfish.jersey.server.ChunkedOutput.Builder<Y>
- Type Parameters:
Y
-
- Direct Known Subclasses:
ChunkedOutput.TypedBuilder
- Enclosing class:
- ChunkedOutput<T>
Builder that allows to create a new ChunkedOutput based on the given configuration options.
-
Method Summary
Modifier and TypeMethodDescriptionasyncContextProvider
(jakarta.inject.Provider<AsyncContext> asyncContextProvider) Set the async context provider.build()
Build the ChunkedOutput based on the given configuration.chunkDelimiter
(byte[] chunkDelimiter) Set the chunk delimiter, in bytes.queueCapacity
(int queueCapacity) Set the queue capacity.
-
Method Details
-
chunkDelimiter
Set the chunk delimiter, in bytes.- Parameters:
chunkDelimiter
- the chunk delimiter in bytes- Returns:
- builder
-
queueCapacity
Set the queue capacity. If greater than 0, the queue is bounded and will block when full.- Parameters:
queueCapacity
- the queue capacity- Returns:
- builder
-
asyncContextProvider
public ChunkedOutput.Builder<Y> asyncContextProvider(jakarta.inject.Provider<AsyncContext> asyncContextProvider) Set the async context provider.- Parameters:
asyncContextProvider
- the async context provider- Returns:
- builder
-
build
Build the ChunkedOutput based on the given configuration.- Returns:
- the ChunkedOutput
-