I have a ConstraintsResolver
class which resolves a queue of Constraint
s. This is done when a ConstraintsResolver
object calls meetConstraint()
on a Constraint
one.
Most of 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?