Do you expect client be connected before this?
What is default of maxBatchSize
Can Callback be null if someone is not interested in any feedback?
Do you want to throw Exception or any specific one? Is exception thrown in any other cases.