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
- डिस्कनेक्ट होने पर स्वचालित पुन:कनेक्शन
- पुनः प्रयास में देरी के लिए jitter के साथ घातीय बैकऑफ़
- errors को retryable बनाम fatal के रूप में वर्गीकृत करना
- कनेक्शन स्थिति की निगरानी के लिए lifecycle callbacks
पैरामीटर
Session
HTTP कॉल के लिए उपयोग की जाने वाली requests Session।
str
HTTP method (आमतौर पर “get”)।
str
जिससे स्ट्रीम करना है, उसका पूरा URL।
StreamConfig
पुनः प्रयास और callback सेटिंग्स के साथ StreamConfig।