@Override public Object attempt(Connection cnx) throws Exception { ServerQueueStatus status = cnx.getQueueStatus(); return status.isNonRedundant() ? Boolean.FALSE : Boolean.TRUE; }
protected String getTypeAsString() { String type = null; if (isNonRedundant()) { type = "NON_REDUNDANT"; } else if (isRedundant()) { type = "REDUNDANT"; } else { type = "PRIMARY"; } return type; }
if (serverQueueStatus.isPrimary() || serverQueueStatus.isNonRedundant()) { PoolImpl pool = (PoolImpl) this.qManager.getPool(); if (!pool.getReadyForEventsCalled()) {