title: How to use Java Constant as a part of @Scheduler expression annotation in Spring?
body: <p>I am using Spring scheduler as given bellow. </p>
  
  <pre><code> @Scheduled(fixedDelay = ((10 * 60 * 1000) / 2))
      public void runDynamic()
      {
        //doing my stuff
      }
  </code></pre>
  
  <p>Now suppose I have one constant like this</p>
  
  <pre><code>public static final Integer VARIANCE_TIME_IN_MIN = 10;
  </code></pre>
  
  <p>And I want to use this constant as a part of my expression something like this :</p>
  
  <pre><code>@Scheduled(fixedDelay = ((MyConstants.VARIANCE_TIME_IN_MIN * 60 * 1000) / 2))
  public void runDynamic()
  {
  //doing my stuff
  }
  </code></pre>
  
  <p>but it is giving my compile time error. Any ideas? Thanks in Advance..!</p>