Package com.mux.sdk.webrtc.spaces
Class SpaceConfiguration.Builder
- java.lang.Object
-
- com.mux.sdk.webrtc.spaces.SpaceConfiguration.Builder
-
- Enclosing class:
- SpaceConfiguration
public static class SpaceConfiguration.Builder extends java.lang.Object
A class for building SpaceConfigurations using the builder pattern.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpaceConfiguration
build()
SpaceConfiguration.Builder
setDisplayName(java.lang.String displayName)
SpaceConfiguration.Builder
setId(java.lang.String spaceId)
SpaceConfiguration.Builder
setJWT(java.lang.String rawToken)
Set the complete JWT valueSpaceConfiguration.Builder
setManagedSubscriptions(boolean managedSubscriptions)
Set if we should default to managed (i.e.SpaceConfiguration.Builder
setManagedSubscriptions(int managedSubscriptions)
Directly set the number of things to subscribe to 0 means it's manual, maximum is MAXIMUM_SUBSCRIPTIONSSpaceConfiguration.Builder
setParticipantId(java.lang.String participantId)
Sets the participant ID for joining the Space This is optional.
-
-
-
Method Detail
-
setId
public SpaceConfiguration.Builder setId(java.lang.String spaceId)
-
setParticipantId
public SpaceConfiguration.Builder setParticipantId(java.lang.String participantId)
Sets the participant ID for joining the Space This is optional. If a JWT is provided it must be consistent with that (i.e. the JWT must not claim a different participant ID).- Parameters:
participantId
-- Returns:
-
setManagedSubscriptions
public SpaceConfiguration.Builder setManagedSubscriptions(boolean managedSubscriptions)
Set if we should default to managed (i.e. manual) subscriptions. Managed means the server will dynamically pick a set of participants to subscribe to based on activity. Defaults to true.- Parameters:
managedSubscriptions
-- Returns:
-
setManagedSubscriptions
public SpaceConfiguration.Builder setManagedSubscriptions(int managedSubscriptions)
Directly set the number of things to subscribe to 0 means it's manual, maximum is MAXIMUM_SUBSCRIPTIONS- Parameters:
managedSubscriptions
-- Returns:
-
setJWT
public SpaceConfiguration.Builder setJWT(java.lang.String rawToken)
Set the complete JWT value- Parameters:
rawToken
-- Returns:
-
setDisplayName
public SpaceConfiguration.Builder setDisplayName(java.lang.String displayName)
- Parameters:
displayName
- , display name to be used when particip[ant join the space.- Returns:
-
build
public SpaceConfiguration build() throws SpaceConfigurationException
- Throws:
SpaceConfigurationException
-
-