/** * Terminates the flow, shutting down the worker thread and preventing further * task executions. * * @return A {@link Joinable} for the caller to wait on. */ @Override public Joinable terminate() { executor.terminate(); return this; }
@Override public Joinable terminate() { scavengerThread.terminate(); return this; }
@Override public Joinable terminate() { scavengerThread.terminate(); return this; }
@Override public Joinable terminate() { publishThread.terminate(); return this; }
@Override public Joinable terminate() { pollerThread.terminate(); return this; }
/** * Terminates the scheduler, shutting down the worker thread and preventing further * task executions. * * @return A {@link Joinable} for the caller to wait on. */ @Override public Joinable terminate() { executor.terminate(); return this; }
@Override public Joinable terminate() { return thread.terminate(); }
@Override public void dispose() { thread.terminate().joinSilently(); } }