org.apache.camel.component.seda
Class ListPollingConsumer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.PollingConsumerSupport
org.apache.camel.component.seda.ListPollingConsumer
- All Implemented Interfaces:
- Consumer, PollingConsumer, Service
Deprecated. not used. Will be removed in Camel 2.0.
@Deprecated
public class ListPollingConsumer
- extends PollingConsumerSupport
- Version:
- $Revision: 642 $
Method Summary |
protected void |
doStart()
Deprecated. |
protected void |
doStop()
Deprecated. |
Exchange |
receive()
Deprecated. Waits until a message is available and then returns it. |
Exchange |
receive(long timeout)
Deprecated. Attempts to receive a message exchange, waiting up to the given timeout
to expire if a message is not yet available |
Exchange |
receiveNoWait()
Deprecated. Attempts to receive a message exchange immediately without waiting and
returning null if a message exchange is not available yet. |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
ListPollingConsumer
public ListPollingConsumer(Endpoint endpoint,
List<Exchange> exchanges)
- Deprecated.
receive
public Exchange receive()
- Deprecated.
- Description copied from interface:
PollingConsumer
- Waits until a message is available and then returns it. Warning that this
method could block indefinitely if no messages are available.
Will return null if the consumer is not started
- Returns:
- the message exchange received.
receiveNoWait
public Exchange receiveNoWait()
- Deprecated.
- Description copied from interface:
PollingConsumer
- Attempts to receive a message exchange immediately without waiting and
returning null if a message exchange is not available yet.
- Returns:
- the message exchange if one is immediately available otherwise
null
receive
public Exchange receive(long timeout)
- Deprecated.
- Description copied from interface:
PollingConsumer
- Attempts to receive a message exchange, waiting up to the given timeout
to expire if a message is not yet available
- Parameters:
timeout
- the amount of time in milliseconds to wait for a message
before timing out and returning null
- Returns:
- the message exchange if one iwas available within the timeout
period, or null if the timeout expired
doStart
protected void doStart()
throws Exception
- Deprecated.
- Specified by:
doStart
in class ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Deprecated.
- Specified by:
doStop
in class ServiceSupport
- Throws:
Exception
Copyright © 2010 IONA Open Source Community. All Rights Reserved.