Max connections how to restrict ? java thread on transportclient in Elasticsearch?

Max connections how to restrict ? java thread on transportclient in Elasticsearch ?