List of usage examples for com.google.common.util.concurrent AbstractScheduledService subclass-usage
From source file net.holmes.core.service.ReleaseCheckService.java
/** * Scheduled service used to check for new Holmes releases. */ @Singleton public class ReleaseCheckService extends AbstractScheduledService implements Service {
From source file com.dangdang.ddframe.job.lite.internal.reconcile.ReconcileService.java
/**
* ?????.
*
* @author caohao
*
*/
From source file com.facebook.buck.cli.HangMonitor.java
public class HangMonitor extends AbstractScheduledService { private static final Logger LOG = Logger.get(HangMonitor.class); private final Consumer<String> hangReportConsumer; private final AtomicInteger eventsSeenSinceLastCheck; private final Duration hangCheckTimeout;
From source file co.cask.cdap.internal.app.runtime.AbstractResourceReporter.java
/** * Abstract implementation of a {@link co.cask.cdap.app.runtime.ProgramResourceReporter} * writes out resource metrics at a fixed rate that defaults to 60 seconds, but can be specified * in the constructor. */ public abstract class AbstractResourceReporter extends AbstractScheduledService implements ProgramResourceReporter {
From source file com.graphaware.writer.service.QueueBackedScheduledService.java
/**
* A {@link AbstractScheduledService} that maintains a queue of tasks and executes them in a single thread by constantly
* pulling the tasks from the head of the queue.
* <p/>
* By default, if the queue capacity is full, tasks are dropped and a warning is logged.
* <p/>
From source file com.eventsourcing.hlc.NTPServerTimeProvider.java
/**
* NTPServerTimeProvider is a physical time provider that uses external NTP servers to fetch timestamp
* periodically (currently hardcoded as 1 minute).
* <p>
* By default, NTP servers are:
* <p>
From source file org.apache.ambari.server.state.services.CachedAlertFlushService.java
/**
* The {@link CachedAlertFlushService} is used to periodically flush cached
* alert data to the database. This service is controlled by
* {@link Configuration#isAlertCacheEnabled()} and
* {@link Configuration#getAlertCacheFlushInterval()}.
*/
From source file com.dangdang.ddframe.job.cloud.scheduler.mesos.ReconcileService.java
/**
* ??Mesos?.
*
* @author gaohongtao
*/
@RequiredArgsConstructor
From source file com.graphaware.writer.SingleThreadedWriter.java
/**
* A {@link DatabaseWriter} that maintains a queue of tasks and writes to the database in a single thread by constantly
* pulling the tasks from the head of the queue in a single thread.
* <p/>
* If the queue capacity is full, tasks are dropped and a warning is logged.
* <p/>
From source file org.apache.aurora.scheduler.storage.db.RowGarbageCollector.java
/** * A periodic cleanup routine for unreferenced database relations. */ class RowGarbageCollector extends AbstractScheduledService { private static final Logger LOG = LoggerFactory.getLogger(RowGarbageCollector.class);