Event HUB
The EventHUB and related functions..
-
class geoffrey.hub.EventHUB(*args, **kwargs)[source]
The main data exchanger.
-
del_state(data)[source]
Delete a state of the hub state table.
-
get_states(key_criteria)[source]
Generator with the matching states of the key_criteria.
-
put(data)[source]
Put a state or event in the hub.
This method is a coroutine, use:
-
put_nowait(data)[source]
Put a state or event in the hub.
This method is NOT a coroutine, use:
-
restore_states(filename)[source]
Load the state table from disk.
-
run()[source]
Infite loop that send events to the subscribers.
-
save_states(filename)[source]
Save the state table to disk.
-
set_state(data)[source]
Set a state in the hub state table.