public synchronized void unblock() { if (_blocking) { _blocking = false; for (AMQSessionModel ssn : getSessionModels()) { ssn.unblock(); } } }
public synchronized void block() { if (!_blocking) { _blocking = true; for (AMQSessionModel ssn : getSessionModels()) { ssn.block(); } } }