* exceeds the available buffer space in the queue
*/
boolean offer(ChannelEvent event) {
int cost = event.getCost();
if (cost > writeBufferAvailable) {
throw new MessageRejectedException(
"Not enough queue space: " + writeBufferAvailable +
" bytes available, " + cost + " requested");
}
boolean success = getQueue().offer(event);
if (success && (cost > 0)) {