Public Member Functions | Package Functions | Private Attributes
org.ros.concurrent.SharedScheduledExecutorService Class Reference
Inheritance diagram for org.ros.concurrent.SharedScheduledExecutorService:
Inheritance graph
[legend]

List of all members.

Public Member Functions

boolean awaitTermination (long timeout, TimeUnit unit) throws InterruptedException
void execute (Runnable command)
boolean isShutdown ()
boolean isTerminated ()
ScheduledFuture<?> schedule (Runnable command, long delay, TimeUnit unit)
ScheduledFuture<?> scheduleAtFixedRate (Runnable command, long initialDelay, long period, TimeUnit unit)
ScheduledFuture<?> scheduleWithFixedDelay (Runnable command, long initialDelay, long delay, TimeUnit unit)
 SharedScheduledExecutorService (ScheduledExecutorService wrapped)
void shutdown ()
List< Runnable > shutdownNow ()
Future<?> submit (Runnable task)

Package Functions

public< T > List< Future< T > > invokeAll (Collection<?extends Callable< T >> tasks, long timeout, TimeUnit unit) throws InterruptedException
public< T > List< Future< T > > invokeAll (Collection<?extends Callable< T >> tasks) throws InterruptedException
public< T > T invokeAny (Collection<?extends Callable< T >> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
public< T > T invokeAny (Collection<?extends Callable< T >> tasks) throws InterruptedException, ExecutionException
public< V > ScheduledFuture< V > schedule (Callable< V > callable, long delay, TimeUnit unit)
public< T > Future< T > submit (Callable< T > task)
public< T > Future< T > submit (Runnable task, T result)

Private Attributes

ScheduledExecutorService scheduledExecutorService

Detailed Description

A ScheduledExecutorService which cannot be shut down. This can be safely injected into instances which should not be in control of the ExecutorService's lifecycle.

Author:
khughes@google.com (Keith M. Hughes)

Definition at line 21 of file SharedScheduledExecutorService.java.


Constructor & Destructor Documentation

Definition at line 28 of file SharedScheduledExecutorService.java.


Member Function Documentation

boolean org.ros.concurrent.SharedScheduledExecutorService.awaitTermination ( long  timeout,
TimeUnit  unit 
) throws InterruptedException [inline]
See also:
java.util.concurrent.ExecutorService::awaitTermination(long, java.util.concurrent.TimeUnit)

Definition at line 37 of file SharedScheduledExecutorService.java.

void org.ros.concurrent.SharedScheduledExecutorService.execute ( Runnable  command) [inline]
Parameters:
command
See also:
java.util.concurrent.Executor::execute(java.lang.Runnable)

Definition at line 46 of file SharedScheduledExecutorService.java.

public<T> List<Future<T> > org.ros.concurrent.SharedScheduledExecutorService.invokeAll ( Collection<?extends Callable< T >>  tasks,
long  timeout,
TimeUnit  unit 
) throws InterruptedException [inline, package]
See also:
java.util.concurrent.ExecutorService::invokeAll(java.util.Collection, long, java.util.concurrent.TimeUnit)

Definition at line 55 of file SharedScheduledExecutorService.java.

public<T> List<Future<T> > org.ros.concurrent.SharedScheduledExecutorService.invokeAll ( Collection<?extends Callable< T >>  tasks) throws InterruptedException [inline, package]
See also:
java.util.concurrent.ExecutorService::invokeAll(java.util.Collection)

Definition at line 64 of file SharedScheduledExecutorService.java.

public<T> T org.ros.concurrent.SharedScheduledExecutorService.invokeAny ( Collection<?extends Callable< T >>  tasks,
long  timeout,
TimeUnit  unit 
) throws InterruptedException, ExecutionException, TimeoutException [inline, package]
See also:
java.util.concurrent.ExecutorService::invokeAny(java.util.Collection, long, java.util.concurrent.TimeUnit)

Definition at line 74 of file SharedScheduledExecutorService.java.

public<T> T org.ros.concurrent.SharedScheduledExecutorService.invokeAny ( Collection<?extends Callable< T >>  tasks) throws InterruptedException, ExecutionException [inline, package]
See also:
java.util.concurrent.ExecutorService::invokeAny(java.util.Collection)

Definition at line 83 of file SharedScheduledExecutorService.java.

See also:
java.util.concurrent.ExecutorService::isShutdown()

Definition at line 92 of file SharedScheduledExecutorService.java.

See also:
java.util.concurrent.ExecutorService::isTerminated()

Definition at line 100 of file SharedScheduledExecutorService.java.

public<V> ScheduledFuture<V> org.ros.concurrent.SharedScheduledExecutorService.schedule ( Callable< V >  callable,
long  delay,
TimeUnit  unit 
) [inline, package]
See also:
java.util.concurrent.ScheduledExecutorService::schedule(java.util.concurrent.Callable, long, java.util.concurrent.TimeUnit)

Definition at line 109 of file SharedScheduledExecutorService.java.

ScheduledFuture<?> org.ros.concurrent.SharedScheduledExecutorService.schedule ( Runnable  command,
long  delay,
TimeUnit  unit 
) [inline]
See also:
java.util.concurrent.ScheduledExecutorService::schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)

Definition at line 118 of file SharedScheduledExecutorService.java.

ScheduledFuture<?> org.ros.concurrent.SharedScheduledExecutorService.scheduleAtFixedRate ( Runnable  command,
long  initialDelay,
long  period,
TimeUnit  unit 
) [inline]
See also:
java.util.concurrent.ScheduledExecutorService::scheduleAtFixedRate(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)

Definition at line 127 of file SharedScheduledExecutorService.java.

ScheduledFuture<?> org.ros.concurrent.SharedScheduledExecutorService.scheduleWithFixedDelay ( Runnable  command,
long  initialDelay,
long  delay,
TimeUnit  unit 
) [inline]
See also:
java.util.concurrent.ScheduledExecutorService::scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)

Definition at line 137 of file SharedScheduledExecutorService.java.

See also:
java.util.concurrent.ExecutorService::shutdown()

Definition at line 146 of file SharedScheduledExecutorService.java.

See also:
java.util.concurrent.ExecutorService::shutdownNow()

Definition at line 154 of file SharedScheduledExecutorService.java.

public<T> Future<T> org.ros.concurrent.SharedScheduledExecutorService.submit ( Callable< T >  task) [inline, package]
See also:
java.util.concurrent.ExecutorService::submit(java.util.concurrent.Callable)

Definition at line 162 of file SharedScheduledExecutorService.java.

public<T> Future<T> org.ros.concurrent.SharedScheduledExecutorService.submit ( Runnable  task,
result 
) [inline, package]
See also:
java.util.concurrent.ExecutorService::submit(java.lang.Runnable, java.lang.Object)

Definition at line 171 of file SharedScheduledExecutorService.java.

Future<?> org.ros.concurrent.SharedScheduledExecutorService.submit ( Runnable  task) [inline]
See also:
java.util.concurrent.ExecutorService::submit(java.lang.Runnable)

Definition at line 179 of file SharedScheduledExecutorService.java.


Member Data Documentation

The scheduledExecutorService ScheduledExecutorService.

Definition at line 26 of file SharedScheduledExecutorService.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:50