Class SpaceConfiguration.Builder

  • Enclosing class:
    SpaceConfiguration

    public static class SpaceConfiguration.Builder
    extends java.lang.Object
    A class for building SpaceConfigurations using the builder pattern.
    • Method Detail

      • 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
        Parameters:
        managedSubscriptions -
        Returns:
      • setJWT

        public SpaceConfiguration.Builder setJWT​(java.lang.String rawToken)
        Set the complete JWT value
        Parameters:
        rawToken -
        Returns: