LokAccessOperation¶
Inherits:
The LokAccessOperation class executes given operations to access data.
Description¶
The LokAccessOperation class helps with the execution of operations that can manipulate stored data. This class is used by the LokAccessExecutor class in order to organize and queue different operations in a parallel Thread. Since this class is used with different Thread method when emitting signals, so that the main Thread can seamlessly connect with these signals.
Version: 1.0.0 Author: Daniel Sousa (github.com/nadjiel <github.com/nadjiel>_)
Property Index¶
Type |
Name |
Default value |
|---|---|---|
Callable |
Method Index¶
Return type |
Signature |
|---|---|
Dictionary |
operate() |
Signal Descriptions¶
started()¶
The started signal is emitted when this operation starts with its operate method being called.
finished(Dictionary result)¶
The finished signal is emitted when this operations finishes with the end of its operate method execution.
This signal passes a result Dictionary with the result of this operation.
Property Descriptions¶
Callable _callable¶
The _callable property of this LokAccessOperation represents a Callable that is executed in order for this LokAccessOperation to execute. This Callable is supposed to return a Dictionary with the result of this LokAccessOperation.
Method Descriptions¶
Dictionary operate()¶
The operate is the main point of execution of this LokAccessOperation. It’s this method that is responsible for emitting the started and finished signals in the given times, which allows this LokAccessOperation to be handled asynchronously.