protected final void registerProducer ( AbstractMessageProducer producer ) { if ( producersMap . put ( producer . getId ( ) , producer ) != null ) throw new IllegalArgumentException ( "Producer " + producer . getId ( ) + " already exists" ) ; }
Register a producer