@Override public int getQueued() { return link.getQueued(); }
private int queued(boolean outgoing) { int count = 0; if (_driver != null) { for (Connector<?> c : _driver.connectors()) { Connection connection = c.getConnection(); for (Link link : new Links(connection, ACTIVE, ANY)) { if (outgoing) { if (link instanceof Sender) count += link.getQueued(); } else { if (link instanceof Receiver) count += link.getQueued(); } } } } return count; }
private int queued(boolean outgoing) { int count = 0; if (_driver != null) { for (Connector<?> c : _driver.connectors()) { Connection connection = c.getConnection(); for (Link link : new Links(connection, ACTIVE, ANY)) { if (outgoing) { if (link instanceof Sender) count += link.getQueued(); } else { if (link instanceof Receiver) count += link.getQueued(); } } } } return count; }
private int queued(boolean outgoing) { int count = 0; for (Connector c : _driver.connectors()) { Connection connection = c.getConnection(); for (Link link : new Links(connection, ACTIVE, ANY)) { if (outgoing) { if (link instanceof Sender) count += link.getQueued(); } else { if (link instanceof Receiver) count += link.getQueued(); } } } return count; }
public boolean test() { //are all sent messages settled? for (Connector c : _driver.connectors()) { Connection connection = c.getConnection(); for (Link link : new Links(connection, ACTIVE, ACTIVE)) { if (link instanceof Sender) { if (link.getQueued() > 0) { return false; } //TODO: Sender.unsettled() not yet implemented, when it is change to the following //if (checkSettled(link.unsettled()) //{ // return false; //} } } } //TODO: Sender.unsettled() not yet implemented, when it is change to the following //return true; return checkSettled(_outgoing.deliveries()); }
total += link.getQueued();
total += link.getQueued();