|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PollingConsumer<E extends Exchange>
Represents a Polling Consumer where the caller polls for messages when it is ready.
| Method Summary | |
|---|---|
E |
receive()
Waits until a message is available and then returns it. |
E |
receive(long timeout)
Attempts to receive a message exchange, waiting up to the given timeout to expire if a message is not yet available |
E |
receiveNoWait()
Attempts to receive a message exchange immediately without waiting and returning null if a message exchange is not available yet. |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Method Detail |
|---|
E receive()
E receiveNoWait()
E receive(long timeout)
timeout - the amount of time in milliseconds to wait for a message
before timing out and returning null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||