I have a
ConstraintsResolver class which resolves a queue of
Constraints. This is done when a
ConstraintsResolver object calls
meetConstraint() on a
meetConstraint() implementations will return immediately, so I could just return a boolean, but there is at least one that will block, which means I need to implement the callback pattern.
Do I have an option to combine both solutions or I have to implement only the callback pattern?