public synchronized boolean removeReceiver(SpanReceiver receiver){
  SpanReceiver[] receivers=curReceivers;
  for (int i=0; i < receivers.length; i++) {
    if (receivers[i] == receiver) {
      SpanReceiver[] newReceivers=new SpanReceiver[receivers.length - 1];
      System.arraycopy(receivers,0,newReceivers,0,i);
      System.arraycopy(receivers,i + 1,newReceivers,i,receivers.length - i - 1);
      curReceivers=newReceivers;
      LOG.trace(toString() + ": removed receiver " + receiver.toString());
      return true;
    }
  }
  LOG.trace(toString() + ": can't remove receiver " + receiver.toString()+ " since it's not currently in this pool.");
  return false;
}

public synchronized boolean removeReceiver ( SpanReceiver receiver ) { SpanReceiver [ ] receivers = curReceivers ; for ( int i = 0 ; i < receivers . length ; i ++ ) { if ( receivers [ i ] == receiver ) { SpanReceiver [ ] newReceivers = new SpanReceiver [ receivers . length - 1 ] ; System . arraycopy ( receivers , 0 , newReceivers , 0 , i ) ; System . arraycopy ( receivers , i + 1 , newReceivers , i , receivers . length - i - 1 ) ; curReceivers = newReceivers ; LOG . trace ( toString ( ) + ": removed receiver " + receiver . toString ( ) ) ; return true ; } } LOG . trace ( toString ( ) + ": can't remove receiver " + receiver . toString ( ) + " since it's not currently in this pool." ) ; return false ; }
remove a span receiver .
