public ReceiverQueue createReceiver(int limit) {
		synchronized (receivers) {
			ReceiverQueue q = null;
			if (!closed && (maxNrofReceivers == 0 || receivers.size() < maxNrofReceivers)) {
				q = new ReceiverQueue(/*this, */limit);
				receivers.add(q);
			}
			return q;
		}
	}
public ReceiverQueue createReceiver ( int limit ) { synchronized ( receivers ) { ReceiverQueue q = null ; if ( ! closed && ( maxNrofReceivers == 0 || receivers . size ( ) < maxNrofReceivers ) ) { q = new ReceiverQueue ( limit ) ; receivers . add ( q ) ; } return q ; } }
Creates a receiver for this channel.

@param limit the maximum number of objects stored in the receiver queue
@return a receiver