// set up async client manager
TAsyncClientManager acm = new TAsyncClientManager();
// connect an async client
TNonblockingSocket clientSock = new TNonblockingSocket("localhost", 12345);
Srv.AsyncClient client = new Srv.AsyncClient(new TBinaryProtocol.Factory(), acm, clientSock);
final Object o = new Object();
// make a standard method call