Can clients enqueue from different threads in the same client process?
The StreamBaseClient class is single-threaded, which means that you cannot simultaneously use a particular StreamBaseClient instance concurrently from multiple threads. However, you may create and use separate StreamBaseClient objects in separate threads, provided that no two threads are using the same StreamBaseClient concurrently. For instance, you could share a StreamBaseClient across any number of threads as long as you guard the StreamBaseClient object with a mutex. That is, you must have each thread allocate the mutex before performing any operation on the object. Or you could give each thread its own StreamBaseClient. For essential reference information about threading in clients, please see the Class StreamBaseClient topic in the Java API reference documentation.