public void handIn ( String key , V obj ) { if ( ! retrieveSharedQueue ( key ) . offer ( obj ) ) { throw new RuntimeException ( "Could not register the given element, broker slot is already occupied." ) ; } }
Hand in the object to share .