public void scheduleExpirationTask ( ) { if ( nodeEngine . getLocalMember ( ) . isLiteMember ( ) || scheduled . get ( ) || ! scheduled . compareAndSet ( false , true ) ) { return ; } scheduledExpirationTask = globalTaskScheduler . scheduleWithRepetition ( task , taskPeriodSeconds , taskPeriodSeconds , SECONDS ) ; scheduledOneTime . set ( true ) ; }
Starts scheduling of the task that clears expired entries . Calling this method multiple times has same effect .