Package 

Interface StreamConnectionIdHolder


  • 
    public interface StreamConnectionIdHolder
    
                        

    Holds and manages the connection ID for the Stream client.

    Implementations are responsible for storing the connection ID in a thread-safe manner and exposing it to other parts of the SDK.

    All methods return a Result to allow explicit error handling. On success, the Result contains the expected value (or null if no connection ID is set). On failure, the Result contains the relevant Throwable.

    • Method Summary

      Modifier and Type Method Description
      abstract Result<Unit> clear() Clears the stored connection ID.
      abstract Result<String> setConnectionId(String connectionId) Stores the given connection ID.
      abstract Result<String> getConnectionId() Retrieves the stored connection ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait