title: How to have a different instance of the handler/processor for each client in Thrift?
body: <p>I know that the handler run in a different server thread for each client, but how can I have one instance of the handler for each client.</p>
  
  <p>I'm writing my server in Java.</p>
  
  <p>EDIT: I just figured it out. I have to provide my own implementation of the TProcessorFactory. The default implementation returns a singleton. <a href="http://people.apache.org/~jfarrell/thrift/0.6.1/javadoc/org/apache/thrift/TProcessorFactory.html" rel="nofollow">http://people.apache.org/~jfarrell/thrift/0.6.1/javadoc/org/apache/thrift/TProcessorFactory.html</a></p>