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