Adds a reading consumer to the bus.
Adds a reading consumer to the bus. Note that the readers are kept in a Set and this method doesn't currently check whether the set already contains the reader. Adding the same reader more than once will cause malfunction.
As a consequence, the user's busChanged method is invoked with the current bus. The current bus may change due to the addition. In this case, busChanged is called on all other currently registered users.
Adds a writing consumer to the bus.
Adds a writing consumer to the bus. Note that the writers are kept in a Set and this method doesn't currently check whether the set already contains the writer. Adding the same writer more than once will cause malfunction.
As a consequence, the user's busChanged method is invoked with the current bus. The current bus may change due to the addition. In this case, busChanged is called on all other currently registered users.
Removes a reading consumer from the bus.
Removes a reading consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.
The current bus may change due to the removal. In this case, busChanged is called on all remaining registered users.
Removes a writing consumer from the bus.
Removes a writing consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.
The current bus may change due to the removal. In this case, busChanged is called on all remaining registered users.