@Deprecated
public MessageProducer createProducer(final PartitionSelector partitionSelector, final boolean ordered) {
if (partitionSelector == null) {
throw new IllegalArgumentException("Null partitionSelector");
}
return this.addChild(new SimpleMessageProducer(this, this.remotingClient, partitionSelector,
this.producerZooKeeper, this.sessionIdGenerator.generateId()));
}