Use REST or JAVA client?

if use java client - TransportClient, how to implement client pool?

thanks.