/** * {@inheritDoc} */ @Override public Future<?> submit(Runnable task) { submitted.mark(); return delegate.submit(new InstrumentedRunnable(task)); }
/** * {@inheritDoc} */ @Override public void execute(Runnable command) { submitted.mark(); delegate.execute(new InstrumentedRunnable(command)); }
/** * {@inheritDoc} */ @Override public ScheduledFuture<?> scheduleWithFixedDelay( Runnable command, long initialDelay, long delay, TimeUnit unit ) { scheduledRepetitively.mark(); return delegate.scheduleWithFixedDelay(new InstrumentedRunnable(command), initialDelay, delay, unit); }
/** * {@inheritDoc} */ @Override public <T> Future<T> submit(Runnable task, T result) { submitted.mark(); return delegate.submit(new InstrumentedRunnable(task), result); }
/** * {@inheritDoc} */ @Override public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { scheduledOnce.mark(); return delegate.schedule(new InstrumentedRunnable(command), delay, unit); }
/** * {@inheritDoc} */ @Override public <T> Future<T> submit(Runnable task, T result) { submitted.mark(); return delegate.submit(new InstrumentedRunnable(task), result); }
/** * {@inheritDoc} */ @Override public ScheduledFuture<?> scheduleWithFixedDelay( Runnable command, long initialDelay, long delay, TimeUnit unit ) { scheduledRepetitively.mark(); return delegate.scheduleWithFixedDelay(new InstrumentedRunnable(command), initialDelay, delay, unit); }
/** * {@inheritDoc} */ @Override public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { scheduledOnce.mark(); return delegate.schedule(new InstrumentedRunnable(command), delay, unit); }
/** * {@inheritDoc} */ @Override public Future<?> submit(Runnable task) { submitted.mark(); return delegate.submit(new InstrumentedRunnable(task)); }
/** * {@inheritDoc} */ @Override public void execute(Runnable command) { submitted.mark(); delegate.execute(new InstrumentedRunnable(command)); }