/** {@inheritDoc} */ @SuppressWarnings({"SuspiciousMethodCalls"}) public boolean retainAll( Collection<?> collection ) { boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( Short.valueOf ( iter.next() ) ) ) { iter.remove(); modified = true; } } return modified; }
/** {@inheritDoc} */ public boolean retainAll( TShortCollection collection ) { if ( this == collection ) { return false; } boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( iter.next() ) ) { iter.remove(); modified = true; } } return modified; }
/** {@inheritDoc} */ @SuppressWarnings({"SuspiciousMethodCalls"}) public boolean retainAll( Collection<?> collection ) { boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( Short.valueOf ( iter.next() ) ) ) { iter.remove(); modified = true; } } return modified; }
/** {@inheritDoc} */ @Override public boolean retainAll( Collection<?> collection ) { boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( Short.valueOf ( iter.next() ) ) ) { iter.remove(); modified = true; } } return modified; }
/** {@inheritDoc} */ @SuppressWarnings({"SuspiciousMethodCalls"}) public boolean retainAll( Collection<?> collection ) { boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( Short.valueOf ( iter.next() ) ) ) { iter.remove(); modified = true; } } return modified; }
/** {@inheritDoc} */ @SuppressWarnings({"SuspiciousMethodCalls"}) public boolean retainAll( Collection<?> collection ) { boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( Short.valueOf ( iter.next() ) ) ) { iter.remove(); modified = true; } } return modified; }
private void releasePeers(BroadcastEntry entry, short node) { final Message message = entry.message; for (TShortIterator it = entry.nodes.iterator(); it.hasNext();) { final NodePeer peer = peers.get(it.next()); if (peer.isBroadcast()) { LOG.debug("Broadcast releasing peer {} for message {}", peer, message); if (peer.node != node) { LOG.debug("Broadcast marking message {} as timeout for peer {}", message, peer); peer.markAsTimeout(message); } peer.unicastBroadcast(); executor.submit(peer); } } }
/** {@inheritDoc} */ public boolean retainAll( TShortCollection collection ) { if ( this == collection ) { return false; } boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( iter.next() ) ) { iter.remove(); modified = true; } } return modified; }
/** {@inheritDoc} */ public boolean retainAll( TShortCollection collection ) { if ( this == collection ) { return false; } boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( iter.next() ) ) { iter.remove(); modified = true; } } return modified; }
/** {@inheritDoc} */ public boolean retainAll( TShortCollection collection ) { if ( this == collection ) { return false; } boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( iter.next() ) ) { iter.remove(); modified = true; } } return modified; }
/** {@inheritDoc} */ @Override public boolean retainAll( TShortCollection collection ) { if ( this == collection ) { return false; } boolean modified = false; TShortIterator iter = iterator(); while ( iter.hasNext() ) { if ( ! collection.contains( iter.next() ) ) { iter.remove(); modified = true; } } return modified; }
for (TShortIterator it = entry.nodes.iterator(); it.hasNext();) { final short node = it.next(); final NodePeer peer = peers.get(node);
long delay = resendPeriodNanos - sinceLastSent; delay = (delay >= 0 ? delay : 0); for (TShortIterator it = entry.nodes.iterator(); it.hasNext();) { final NodePeer peer = peers.get(it.next()); if (peer.isBroadcast()) {
if (setNextState(line, State.E)) { assert !line.sharers.isEmpty(); for (TShortIterator it = line.sharers.iterator(); it.hasNext();) { final short sharer = it.next(); if (sharer != Comm.SERVER) // we've already INVed server in handleMessagePutX