Interface SessionMetadata


public interface SessionMetadata
Represents metadata associated with a media session, including a description and custom key-value pairs.

Implementations of this interface provide access to the session metadata, which can be used to store additional information about the media session.

To create a new instance of SessionMetadata, use the Builder pattern: SessionMetadata metadata = new SessionMetadataImpl.Builder() .sessionId("1-48461@10.48.126.53") .description("Media session metadata") .addCustom("key1", "value1") .addCustom("key2", 123) .build();

Author:
Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
  • Method Details

    • getDescription

      String getDescription()
      Gets the description of the media session.
      Returns:
      the description, or null if not applicable.
    • setDescription

      void setDescription(String description)
      Sets the description of the media session.
      Parameters:
      description - the description to set.
    • getSessionId

      String getSessionId()
      Gets the session ID for this media session.
      Returns:
      the session ID, or null if not applicable.
    • setSessionId

      void setSessionId(String sessionId)
      Sets the session ID for this media session.
      Parameters:
      sessionId - the session ID to set.
    • getCustom

      Map<String,Object> getCustom()
      Gets the custom metadata associated with the media session.
      Returns:
      the custom metadata, or null if not applicable.
    • setCustom

      void setCustom(Map<String,Object> custom)
      Sets the custom metadata associated with the media session.
      Parameters:
      custom - the custom metadata to set.