Interface ParentingMediaContextBuilder<T>

Type Parameters:
T - Type of the class which this builder support is added to.
All Known Implementing Classes:
WebClient.Builder, WebServer.Builder

public interface ParentingMediaContextBuilder<T>
Builder of MediaContext that can be parented.
  • Method Details

    • mediaContext

      T mediaContext(MediaContext mediaContext)
      Sets the MediaContext parent and overrides the existing one. This method discards all previously registered readers and writers via builder.
      Parameters:
      mediaContext - media context
      Returns:
      updated instance of the builder
    • mediaContext

      default T mediaContext(Supplier<MediaContext> mediaContextSupplier)
      Sets the MediaContext parent and overrides the existing one. This method discards all previously registered readers and writers via builder.
      Parameters:
      mediaContextSupplier - supplier for media context
      Returns:
      updated instance of the builder