org.springframework.integration.channel.factory
Class QueueChannelFactory

java.lang.Object
  extended by org.springframework.integration.channel.factory.AbstractChannelFactory
      extended by org.springframework.integration.channel.factory.QueueChannelFactory
All Implemented Interfaces:
ChannelFactory

public class QueueChannelFactory
extends AbstractChannelFactory

Default implementation of a ChannelFactory, which will create instances of a QueueChannel.

Author:
Marius Bogoevici

Field Summary
(package private)  int queueCapacity
           
 
Constructor Summary
QueueChannelFactory()
           
 
Method Summary
protected  AbstractMessageChannel createChannelInternal()
          Factory method to be overridden by subclasses.
 int getQueueCapacity()
           
 void setQueueCapacity(int queueCapacity)
          Sets the queue capacity for the newly created channels.
 
Methods inherited from class org.springframework.integration.channel.factory.AbstractChannelFactory
getChannel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queueCapacity

int queueCapacity
Constructor Detail

QueueChannelFactory

public QueueChannelFactory()
Method Detail

getQueueCapacity

public int getQueueCapacity()

setQueueCapacity

public void setQueueCapacity(int queueCapacity)
Sets the queue capacity for the newly created channels. By default, the queue capacity is QueueChannel.DEFAULT_CAPACITY

Parameters:
queueCapacity -

createChannelInternal

protected AbstractMessageChannel createChannelInternal()
Description copied from class: AbstractChannelFactory
Factory method to be overridden by subclasses. It assumes that subclasses will return subclasses of AbstractMessageChannel.

Specified by:
createChannelInternal in class AbstractChannelFactory