Max connection restrict on Es java thread

Please just create one thread Max connections how to restrict ? java thread on transportclient in Elasticsearch?