public class QueueOperations extends Object
| Modifier and Type | Field and Description |
|---|---|
protected TemporaryQueueRule |
temporaryQueueRule |
| Constructor and Description |
|---|
QueueOperations() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<Serializable,Void> |
dequeue(String queueName,
Long timeout,
TimeUnit timeoutUnit)
Pops the given data from a temporary queue.
|
void |
queue(org.mule.runtime.api.metadata.TypedValue<Serializable> value,
String queueName)
Pushes the given value to a temporary queue so this can be consumed later on demand
|
@Inject protected TemporaryQueueRule temporaryQueueRule
@Throws(value=QueueErrorTypeProvider.class) public void queue(@Content org.mule.runtime.api.metadata.TypedValue<Serializable> value, @Optional String queueName)
value - Value to queuequeueName - The name of the queue where dequeue a value@Throws(value=QueueErrorTypeProvider.class) public org.mule.runtime.extension.api.runtime.operation.Result<Serializable,Void> dequeue(@Optional String queueName, @Optional(defaultValue="10000") Long timeout, @Optional(defaultValue="MILLISECONDS") TimeUnit timeoutUnit)
queueName - The name of the queue where dequeue a valuetimeout - Time to wait for a value until the connector throws a QUEUE_TIMEOUT errortimeoutUnit - Time Unit to use to wait for a value to arriveCopyright © 2022 MuleSoft, Inc.. All rights reserved.