-
public interface StreamConnectionIdHolderHolds 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
nullif 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. -
-
Method Detail
-
setConnectionId
abstract Result<String> setConnectionId(String connectionId)
Stores the given connection ID.
- Parameters:
connectionId- The connection ID to store.
-
getConnectionId
abstract Result<String> getConnectionId()
Retrieves the stored connection ID.
-
-
-
-