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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder interface for creating immutableSessionMetadatainstances. -
Method Summary
Modifier and TypeMethodDescriptionGets the custom metadata associated with the media session.Gets the description of the media session.Gets the session ID for this media session.voidSets the custom metadata associated with the media session.voidsetDescription(String description) Sets the description of the media session.voidsetSessionId(String sessionId) Sets the session ID for this media session.
-
Method Details
-
getDescription
String getDescription()Gets the description of the media session.- Returns:
- the description, or null if not applicable.
-
setDescription
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
nullif not applicable.
-
setSessionId
Sets the session ID for this media session.- Parameters:
sessionId- the session ID to set.
-
getCustom
Gets the custom metadata associated with the media session.- Returns:
- the custom metadata, or null if not applicable.
-
setCustom
Sets the custom metadata associated with the media session.- Parameters:
custom- the custom metadata to set.
-