Class HttpProxyExample

java.lang.Object
org.apache.hadoop.hbase.client.example.HttpProxyExample

@Private public class HttpProxyExample extends Object
A simple example on how to use AsyncTable to write a fully asynchronous HTTP proxy server. The AsyncConnection will share the same event loop with the HTTP server.

The request URL is:

 http://<host>:<port>/<table>/<rowgt;/<family>:<qualifier>
 
Use HTTP GET to fetch data, and use HTTP PUT to put data. Encode the value as the request content when doing PUT.

Notice that, future class methods will all return a new Future, so you always have one future that will not been checked, so we need to suppress error-prone "FutureReturnValueIgnored" warnings on the methods such as join and stop. In your real production code, you should use your own convenient way to address the warning.