openbase / bco.dal

Domotic Abstraction Layer
Other
1 stars 2 forks source link

Remove InterruptedException out of UnitPool service Methods #80

Open DivineThreepwood opened 6 years ago

DivineThreepwood commented 6 years ago

To reduce the exception handling just remove the InterruptedException out of the unit pool service methods. Mainly its thrown by the unit init and activation methods but only defined by the interface of such methods while the unit remotes never throw such an exception this can just remove by the overwriting methods within the next release.

DivineThreepwood commented 5 years ago

Probably not all InterruptedExceptions can be removed especially in the case where we need to wait for the unit registry. At least the methods returning future instances should not throw any exceptions and the registry wait should be represented by the future state as well.