title: Thread safe in Spring retry version 1.0.3 (java6)
body: <p>Hi I'm using spring retry 1.0.2 (java 6). This code is thread safe? .. How I can pass parameters to doWithRetry()?</p>
  <pre><code>public class Operation implements RetryCallBack&lt;Void&gt;{
     private String json;
     public Operation(String data){
         this.json = data;
     }
     public Void doWithRetry(RetryContext context) throws Exception {
         //do something
         rest.execute(json);
     }
  }
  
  public class Client {
  
      public static void main(String[] args) throws Exception {
          // TODO Auto-generated method stub
          String data = &quot;XXXXX&quot;; 
          // do something
          retryTemplate.execute(new Operation(data));
           
       }
  
  }
  </code></pre>