streaming#
Provides a module for streaming services.
Classes:
|
Encapsulates a Fluent streaming service. |
- class ansys.fluent.core.streaming_services.streaming.StreamingService(stream_begin_method, target, streaming_service)#
Bases:
object
Encapsulates a Fluent streaming service.
Methods:
__init__
(stream_begin_method, target, ...)__init__ method of StreamingService class.
register_callback
(callback, *args, **kwargs)Register the callback.
start
(*args, **kwargs)Start streaming.
stop
()Stop streaming.
unregister_callback
(callback_id)Unregister the callback.
Attributes:
Checks whether it is streaming.
- __init__(stream_begin_method, target, streaming_service)#
__init__ method of StreamingService class.
- property is_streaming#
Checks whether it is streaming.
- register_callback(callback, *args, **kwargs)#
Register the callback.
- Parameters:
- callback
Callable
Callback to register.
- args
Any
Arguments.
- kwargs
Any
Keyword arguments.
- callback
- Returns:
str
Registered callback ID.
- start(*args, **kwargs)#
Start streaming.
- stop()#
Stop streaming.