Class Fragment

    • Method Detail

      • fragmentNumber

        public final String fragmentNumber()

        The unique identifier of the fragment. This value monotonically increases based on the ingestion order.

        Returns:
        The unique identifier of the fragment. This value monotonically increases based on the ingestion order.
      • fragmentSizeInBytes

        public final Long fragmentSizeInBytes()

        The total fragment size, including information about the fragment and contained media data.

        Returns:
        The total fragment size, including information about the fragment and contained media data.
      • producerTimestamp

        public final Instant producerTimestamp()

        The timestamp from the producer corresponding to the fragment.

        Returns:
        The timestamp from the producer corresponding to the fragment.
      • serverTimestamp

        public final Instant serverTimestamp()

        The timestamp from the Amazon Web Services server corresponding to the fragment.

        Returns:
        The timestamp from the Amazon Web Services server corresponding to the fragment.
      • fragmentLengthInMilliseconds

        public final Long fragmentLengthInMilliseconds()

        The playback duration or other time value associated with the fragment.

        Returns:
        The playback duration or other time value associated with the fragment.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)