protected String getNewLockValue ( long timeoutInMillis ) { long time = System . currentTimeMillis ( ) + timeoutInMillis + 1l ; String lockValue = ApplicationContext . NODE_ID + ":" + time ; return lockValue ; }
Return the new value for the lock for given timeout .