org.springframework.integration.channel.factory
Class PriorityChannelFactory

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

public class PriorityChannelFactory
extends AbstractChannelFactory

A ChannelFactory for creating PriorityChannel instances.

Author:
Marius Bogoevici

Field Summary
private  int capacity
           
private  java.util.Comparator<Message<?>> comparator
           
 
Constructor Summary
PriorityChannelFactory()
           
 
Method Summary
protected  AbstractMessageChannel createChannelInternal()
          Factory method to be overridden by subclasses.
 void setCapacity(int capacity)
           
 void setComparator(java.util.Comparator<Message<?>> comparator)
           
 
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

capacity

private int capacity

comparator

private java.util.Comparator<Message<?>> comparator
Constructor Detail

PriorityChannelFactory

public PriorityChannelFactory()
Method Detail

setCapacity

public void setCapacity(int capacity)

setComparator

public void setComparator(java.util.Comparator<Message<?>> comparator)

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