org.apache.camel.impl
Class DefaultProducerServicePool

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultServicePool<Endpoint,Producer>
          extended by org.apache.camel.impl.DefaultProducerServicePool
All Implemented Interfaces:
Service, ServicePool<Endpoint,Producer>
Direct Known Subclasses:
SharedProducerServicePool

public class DefaultProducerServicePool
extends DefaultServicePool<Endpoint,Producer>

A service pool for Producer.

For instance camel-mina and camel-ftp leverages this to allow a pool of producers so we can support concurrent producers in a thread safe manner.

Version:
$Revision: 12992 $

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultServicePool
capacity, log, pool
 
Constructor Summary
DefaultProducerServicePool(int capacity)
           
 
Method Summary
 int size()
           
 
Methods inherited from class org.apache.camel.impl.DefaultServicePool
acquire, addAndAcquire, doStart, doStop, release
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

DefaultProducerServicePool

public DefaultProducerServicePool(int capacity)
Method Detail

size

public int size()


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.