org.apache.servicemix.executors
Interface Executor

All Known Implementing Classes:
ExecutorImpl

public interface Executor

The Executor interface is a simple interface on top of a thread pool.

Author:
Guillaume Nodet

Method Summary
 int capacity()
          The capacity of the underlying queue (if any)
 void execute(java.lang.Runnable command)
          Execute a command.
 void shutdown()
          Shutdown this executor.
 int size()
          The current size of the underlying queue (if any)
 

Method Detail

execute

void execute(java.lang.Runnable command)
Execute a command.

Parameters:
command - the command to execute

shutdown

void shutdown()
Shutdown this executor. This must be called to kill all threads.


capacity

int capacity()
The capacity of the underlying queue (if any)

Returns:

size

int size()
The current size of the underlying queue (if any)

Returns:


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.