title: Is Netty handler unique for each connection?
body: <p>I've been looking over at the proxy server example from <a href="http://static.netty.io/3.5/xref/org/jboss/netty/example/proxy/HexDumpProxyInboundHandler.html" rel="noreferrer">Netty website</a>: </p>
  
  <p>The example source code handler has a volatile variable </p>
  
  <pre><code>private volatile Channel outboundChannel;
  </code></pre>
  
  <p>which takes care of the channel that connects to another server for proxy. </p>
  
  <p>This got me to wonder if this is the correct and safe way to implement for multiple connections for proxy. </p>
  
  <p>I would like to allow multiple connections(inbound) to connect to different outbounds, while making sure that every inbound connection is uniquely linked to the outbound channel.</p>
  
  <p>According to my knowledge, Netty generates a new pipeline for each connection. Does this mean a newly generated handler by pipeline factory is uniquely dedicated to the new connection(channel)? </p>
  
  <p>p.s. If I have 1,000 active connections to my Netty server, does this mean there are 1,000 different pipelines? </p>