예제 #1
0
파일: Gossiper.java 프로젝트: Jashinta/570
 public boolean isEnabled() {
   return !scheduledGossipTask.isCancelled();
 }
예제 #2
0
 public synchronized boolean isPaused() {
   return !executor.isShutdown() && (ticker == null || ticker.isCancelled());
 }
 @Override
 public boolean isCancelled() {
   return scheduledFuture.isCancelled();
 }
예제 #4
0
 public synchronized boolean isRunning() {
   return !executor.isShutdown() && ticker != null && !ticker.isCancelled();
 }