/** * Receive the first available message from this channel. If the channel * contains no messages, this method will block. * * @return the first available message or <code>null</code> if the * receiving thread is interrupted. */ @Override @Nullable public Message<?> receive() { return receive(-1); }
/** * Receive the first available message from this channel. If the channel * contains no messages, this method will block. * * @return the first available message or <code>null</code> if the * receiving thread is interrupted. */ public final Message<?> receive() { return this.receive(-1); }
/** * Receive the first available message from this channel. If the channel * contains no messages, this method will block. * * @return the first available message or <code>null</code> if the * receiving thread is interrupted. */ @Override @Nullable public Message<?> receive() { return receive(-1); }