pip_services3_commons.run.Closer module
pip_services3_commons.run.Closer
Closer component implementation
- copyright
Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.
- license
MIT, see LICENSE for more details.
-
class
pip_services3_commons.run.Closer.
Closer
Bases:
object
Helper class that closes previously opened components.
-
static
close
(correlation_id: Optional[str, None], components: List[Any]) Closes multiple components.
To be closed components must implement
IClosable
interface. If they don’t the call to this method has no effect.- Parameters
correlation_id – (optional) transaction id to trace execution through call chain.
components – the list of components that are to be closed.
-
static
close_one
(correlation_id: Optional[str, None], component: Any) Closes specific component.
To be closed components must implement
IClosable
interface. If they don’t the call to this method has no effect.- Parameters
correlation_id – (optional) transaction id to trace execution through call chain.
component – the component that is to be closed.
-
static