public class Jt400DataQueueConsumer
extends org.apache.camel.impl.PollingConsumerSupport
PollingConsumer that polls a data queue for data| Modifier | Constructor and Description |
|---|---|
protected |
Jt400DataQueueConsumer(Jt400DataQueueEndpoint endpoint)
Creates a new consumer instance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.Exchange |
receive() |
org.apache.camel.Exchange |
receive(long timeout)
Receives an entry from a data queue and returns an
Exchange to
send this data If the endpoint's format is set to Jt400DataQueueEndpoint.Format.binary,
the data queue entry's data will be received/sent as a
byte[]. |
org.apache.camel.Exchange |
receiveNoWait() |
getEndpoint, getExceptionHandler, handleException, setExceptionHandler, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendprotected Jt400DataQueueConsumer(Jt400DataQueueEndpoint endpoint)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.ServiceSupportExceptionpublic org.apache.camel.Exchange receive()
public org.apache.camel.Exchange receiveNoWait()
public org.apache.camel.Exchange receive(long timeout)
Exchange to
send this data If the endpoint's format is set to Jt400DataQueueEndpoint.Format.binary,
the data queue entry's data will be received/sent as a
byte[]. If the endpoint's format is set to
Jt400DataQueueEndpoint.Format.text, the data queue entry's data will be received/sent as
a String.
The following message headers may be set by the receiver
KeyedDataQueuetimeout - time to wait when reading from data queue. A value of -1
indicates a blocking read.Apache Camel