class HttpSseReconnect
source · line 67public
public class HttpSseReconnect internal constructor(
/**
* The reconnect attempt number.
*/
public val number: Long,
/**
* The selected wait before reconnecting.
*/
public val delay: Duration,
/**
* The URL selected for reconnect.
*/
public val url: Url,
/**
* The last accepted event ID forwarded to the next request.
*/
public val lastEventId: String,
/**
* The preceding failure, or None after ordinary EOF.
*/
public val cause: Throwable?
)
A reconnect snapshot containing attempt number, selected delay, URL, current event ID, and preceding failure.
property number
source · line 71public
public val number: Long
get: public read-only
The reconnect attempt number.
property delay
source · line 75public
public val delay: Duration
get: public read-only
The selected wait before reconnecting.
property lastEventId
source · line 83public
public val lastEventId: String
get: public read-only
The last accepted event ID forwarded to the next request.
property url
source · line 79public
public val url: Url
get: public read-only
The URL selected for reconnect.
property cause
source · line 87public
public val cause: Throwable?
get: public read-only
The preceding failure, or None after ordinary EOF.