void start() { if (syncIntervalNanos < 1) throw new IllegalArgumentException(String.format("Commit log flush interval must be positive: %fms", syncIntervalNanos * 1e-6)); shutdown = false; Runnable runnable = new SyncRunnable(new Clock()); thread = NamedThreadFactory.createThread(runnable, name); thread.start(); }
maybeLogFlushLag(pollStarted, now);
maybeLogFlushLag(pollStarted, now);
public void run() { while (true) { if (!sync()) break; } }
void start() { if (syncIntervalNanos < 1) throw new IllegalArgumentException(String.format("Commit log flush interval must be positive: %fms", syncIntervalNanos * 1e-6)); shutdown = false; Runnable runnable = new SyncRunnable(new Clock()); thread = NamedThreadFactory.createThread(runnable, name); thread.start(); }
public void run() { while (true) { if (!sync()) break; } }
public void run() { while (true) { if (!sync()) break; } }
void start() { if (syncIntervalNanos < 1) throw new IllegalArgumentException(String.format("Commit log flush interval must be positive: %fms", syncIntervalNanos * 1e-6)); shutdown = false; Runnable runnable = new SyncRunnable(new Clock()); thread = NamedThreadFactory.createThread(runnable, name); thread.start(); }