List of usage examples for java.lang Runnable run
public abstract void run();
Runnable
is used to create a thread, starting the thread causes the object's run
method to be called in that separately executing thread. From source file:com.ryantenney.metrics.spring.reporter.JmxReporterFactoryBean.java
@Override public void stop(Runnable runnable) { stop(); runnable.run(); }
From source file:pl.nort.dayoneevernote.DayoneEvernoteApplication.java
@Override public void run(String... args) { Runnable command = new NotesConverter(fetcher, filter, transformer, ImmutableList.of(consolePusher, pusher)); command.run(); }
From source file:cern.c2mon.server.cache.dbaccess.impl.CacheDbLifecycle.java
/** * Smart lifecycle stop implementation.//w ww . ja v a2s.co m * Closes the DB connection pool. */ @Override public void stop(Runnable arg0) { stop(); arg0.run(); }
From source file:dattln.web.view.BaseView.java
protected T chain(Runnable runnable) { runnable.run(); return viewCls.cast(this); }
From source file:com.elytradev.thermionics.api.impl.HeatStorage.java
private void markDirty() { for (Runnable listener : listeners) { listener.run(); } }
From source file:de.tudarmstadt.ukp.clarin.webanno.webapp.migration.FixCoreferenceFeatures.java
@Override public void stop(Runnable aCallback) { stop(); aCallback.run(); }
From source file:com.freebox.engeneering.application.system.ApplicationScope.java
@Override public void destroy() throws Exception { for (Runnable runnable : this.destructionCallbacks.values()) { runnable.run(); }/*from www .j av a 2 s . c om*/ this.destructionCallbacks.clear(); }
From source file:org.obiba.mica.core.ExceptionHandlingAsyncTaskExecutor.java
private Runnable createWrappedRunnable(Runnable task) { return () -> { try {/*w w w . j a va 2s . c o m*/ task.run(); } catch (Exception e) { handle(e); } }; }
From source file:com.auth0.api.internal.BaseRequestTest.java
@Test public void shouldPostOnSuccess() throws Exception { baseRequest.postOnSuccess("OK"); verify(handler).post(captor.capture()); Runnable runnable = captor.getValue(); runnable.run(); verify(callback).onSuccess(eq("OK")); verifyNoMoreInteractions(callback, handler); }
From source file:com.auth0.api.internal.BaseRequestTest.java
@Test public void shouldPostOnFailure() throws Exception { baseRequest.postOnFailure(throwable); verify(handler).post(captor.capture()); Runnable runnable = captor.getValue(); runnable.run(); verify(callback).onFailure(eq(throwable)); verifyNoMoreInteractions(callback, handler); }