public void encode(final ActiveMQBuffer buffer){
  buffer.writeString(name);
  buffer.writeString(factoryClassName);
  buffer.writeInt(params == null ? 0 : params.size());
  if (params != null) {
    encodeMap(buffer,params);
  }
  if (extraProps != null) {
    encodeMap(buffer,extraProps);
  }
}

public void encode ( final ActiveMQBuffer buffer ) { buffer . writeString ( name ) ; buffer . writeString ( factoryClassName ) ; buffer . writeInt ( params == null ? 0 : params . size ( ) ) ; if ( params != null ) { encodeMap ( buffer , params ) ; } if ( extraProps != null ) { encodeMap ( buffer , extraProps ) ; } }
encodes this transportconfiguration into a buffer . < p > note that this is only used internally activemq artemis .
