Class Session

    • Method Detail

      • id

        public final String id()

        The identifier of the streaming session.

        Returns:
        The identifier of the streaming session.
      • userId

        public final String userId()

        The identifier of the user for whom the session was created.

        Returns:
        The identifier of the user for whom the session was created.
      • stackName

        public final String stackName()

        The name of the stack for the streaming session.

        Returns:
        The name of the stack for the streaming session.
      • fleetName

        public final String fleetName()

        The name of the fleet for the streaming session.

        Returns:
        The name of the fleet for the streaming session.
      • state

        public final SessionState state()

        The current state of the streaming session.

        If the service returns an enum value that is not available in the current SDK version, state will return SessionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The current state of the streaming session.
        See Also:
        SessionState
      • stateAsString

        public final String stateAsString()

        The current state of the streaming session.

        If the service returns an enum value that is not available in the current SDK version, state will return SessionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The current state of the streaming session.
        See Also:
        SessionState
      • startTime

        public final Instant startTime()

        The time when a streaming instance is dedicated for the user.

        Returns:
        The time when a streaming instance is dedicated for the user.
      • maxExpirationTime

        public final Instant maxExpirationTime()

        The time when the streaming session is set to expire. This time is based on the MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming session can run. A streaming session might end earlier than the time specified in SessionMaxExpirationTime, when the DisconnectTimeOutInSeconds elapses or the user chooses to end his or her session. If the DisconnectTimeOutInSeconds elapses, or the user chooses to end his or her session, the streaming instance is terminated and the streaming session ends.

        Returns:
        The time when the streaming session is set to expire. This time is based on the MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming session can run. A streaming session might end earlier than the time specified in SessionMaxExpirationTime, when the DisconnectTimeOutInSeconds elapses or the user chooses to end his or her session. If the DisconnectTimeOutInSeconds elapses, or the user chooses to end his or her session, the streaming instance is terminated and the streaming session ends.
      • authenticationType

        public final AuthenticationType authenticationType()

        The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0 federation (SAML).

        If the service returns an enum value that is not available in the current SDK version, authenticationType will return AuthenticationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from authenticationTypeAsString().

        Returns:
        The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0 federation (SAML).
        See Also:
        AuthenticationType
      • authenticationTypeAsString

        public final String authenticationTypeAsString()

        The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0 federation (SAML).

        If the service returns an enum value that is not available in the current SDK version, authenticationType will return AuthenticationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from authenticationTypeAsString().

        Returns:
        The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0 federation (SAML).
        See Also:
        AuthenticationType
      • networkAccessConfiguration

        public final NetworkAccessConfiguration networkAccessConfiguration()

        The network details for the streaming session.

        Returns:
        The network details for the streaming session.
      • instanceId

        public final String instanceId()

        The identifier for the instance hosting the session.

        Returns:
        The identifier for the instance hosting the session.
      • serializableBuilderClass

        public static Class<? extends Session.Builder> serializableBuilderClass()
      • 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)