class xdk.streaming.StreamConfig
매개변수
int
기본값:"10"
float
기본값:"1.0"
float
기본값:"64.0"
float
기본값:"2.0"
bool
기본값:"True"
float or None
기본값:"None"
int
기본값:"1024"
Callable[[], None] or None
기본값:"None"
Callable[[Exception or None], None] or None
기본값:"None"
Callable[[int, float], None] or None
기본값:"None"
Callable[[[StreamError
__init__
파라미터
int
기본값:"10"
float
기본값:"1.0"
float
기본값:"64.0"
float
기본값:"2.0"
bool
기본값:"True"
float or None
기본값:"None"
int
기본값:"1024"
Callable[[], None] or None
기본값:"None"
Callable[[Exception or None], None] or None
기본값:"None"
Callable[[int, float], None] or None
기본값:"None"
Callable[[[StreamError
on_error : Callable[[[StreamError]
exception xdk.streaming.StreamError
매개변수
str
StreamErrorType
__init__
매개변수
str
StreamErrorType
class xdk.streaming.StreamErrorType
매개변수
Any
class xdk.streaming.StreamState
매개변수
int
기본값:"0"
float
기본값:"1.0"
bool
기본값:"False"
int
기본값:"0"
StreamError
__init__
매개변수
int
기본값:"0"
float
기본값:"1.0"
bool
기본값:"False"
int
기본값:"0"
StreamError
last_error : [StreamError]
xdk.streaming.stream_with_retry
- 연결이 끊어졌을 때 자동으로 재연결
- 재시도 지연을 위한 지터가 포함된 지수 백오프
- errors를 재시도 가능한 오류와 치명적인 오류로 분류
- 라이프사이클 콜백을 통한 연결 상태 모니터링
매개변수
Session
HTTP 요청에 사용할 requests Session 인스턴스입니다.
str
HTTP 메서드(일반적으로 “GET”)입니다.
str
스트리밍에 사용할 전체 URL입니다.
StreamConfig
재시도 및 콜백 설정을 포함하는 StreamConfig입니다.