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>

public static class ChunkedOutput.Builder<Y> extends Object
Builder that allows to create a new ChunkedOutput based on the given configuration options.
  • Method Details

    • chunkDelimiter

      public ChunkedOutput.Builder<Y> chunkDelimiter(byte[] chunkDelimiter)
      Set the chunk delimiter, in bytes.
      Parameters:
      chunkDelimiter - the chunk delimiter in bytes
      Returns:
      builder
    • queueCapacity

      public ChunkedOutput.Builder<Y> queueCapacity(int 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

      public ChunkedOutput<Y> build()
      Build the ChunkedOutput based on the given configuration.
      Returns:
      the ChunkedOutput