org.apache.camel
Interface ExecutorServiceAware

All Known Subinterfaces:
ExecutorServiceAwareDefinition<Type>
All Known Implementing Classes:
AggregateDefinition, DelayDefinition, MulticastDefinition, OnCompletionDefinition, RecipientListDefinition, SplitDefinition, ThreadsDefinition, ThrottleDefinition, WireTapDefinition

public interface ExecutorServiceAware

Is used for easy configuration of ExecutorService.

Version:

Method Summary
 java.util.concurrent.ExecutorService getExecutorService()
          Gets the executor service
 java.lang.String getExecutorServiceRef()
          Gets the reference to lookup in the Registry for the executor service to be used.
 void setExecutorService(java.util.concurrent.ExecutorService executorService)
          Sets the executor service to be used.
 void setExecutorServiceRef(java.lang.String executorServiceRef)
          Sets a reference to lookup in the Registry for the executor service to be used.
 

Method Detail

getExecutorService

java.util.concurrent.ExecutorService getExecutorService()
Gets the executor service

Returns:
the executor

setExecutorService

void setExecutorService(java.util.concurrent.ExecutorService executorService)
Sets the executor service to be used.

Parameters:
executorService - the executor

getExecutorServiceRef

java.lang.String getExecutorServiceRef()
Gets the reference to lookup in the Registry for the executor service to be used.

Returns:
the reference, or null if the executor was set directly

setExecutorServiceRef

void setExecutorServiceRef(java.lang.String executorServiceRef)
Sets a reference to lookup in the Registry for the executor service to be used.

Parameters:
executorServiceRef - reference for the executor


Apache CAMEL