Class DataQueue.Builder<B extends DataQueue.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.freedesktop.gstreamer.base.DataQueue.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
DataQueue

public static class DataQueue.Builder<B extends DataQueue.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public DataQueue build()
      Finish building the DataQueue object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to DataQueue.
      Overrides:
      build in class GObject.Builder<B extends DataQueue.Builder<B>>
      Returns:
      a new instance of DataQueue with the properties that were set in the Builder object.
    • onEmpty

      public B onEmpty(DataQueue.EmptyCallback handler)
      Reports that the queue became empty (empty). A queue is empty if the total amount of visible items inside it (num-visible, time, size) is lower than the boundary values which can be set through the GObject properties.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onFull

      public B onFull(DataQueue.FullCallback handler)
      Reports that the queue became full (full). A queue is full if the total amount of data inside it (num-visible, time, size) is higher than the boundary values which can be set through the GObject properties.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: