public class HazelcastQueueTransactionContext extends Object implements org.mule.runtime.core.internal.util.queue.QueueTransactionContext
| Modifier and Type | Field and Description |
|---|---|
static int |
LONG_TIMEOUT |
static int |
SHORT_TIMEOUT |
| Constructor and Description |
|---|
HazelcastQueueTransactionContext(com.hazelcast.transaction.TransactionContext transactionContext,
ClusterQueueNameResolver clusterQueueNameResolver,
org.mule.runtime.api.serialization.ObjectSerializer objectSerializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(org.mule.runtime.core.internal.util.queue.QueueStore queue) |
boolean |
offer(org.mule.runtime.core.internal.util.queue.QueueStore queue,
Serializable item,
long offerTimeout) |
Serializable |
peek(org.mule.runtime.core.internal.util.queue.QueueStore queue) |
Serializable |
poll(org.mule.runtime.core.internal.util.queue.QueueStore queue,
long pollTimeout) |
int |
size(org.mule.runtime.core.internal.util.queue.QueueStore queue) |
void |
untake(org.mule.runtime.core.internal.util.queue.QueueStore queue,
Serializable item) |
public static final int LONG_TIMEOUT
public static final int SHORT_TIMEOUT
public HazelcastQueueTransactionContext(com.hazelcast.transaction.TransactionContext transactionContext,
ClusterQueueNameResolver clusterQueueNameResolver,
org.mule.runtime.api.serialization.ObjectSerializer objectSerializer)
public boolean offer(org.mule.runtime.core.internal.util.queue.QueueStore queue,
Serializable item,
long offerTimeout)
throws InterruptedException
offer in interface org.mule.runtime.core.internal.util.queue.QueueTransactionContextInterruptedExceptionpublic void untake(org.mule.runtime.core.internal.util.queue.QueueStore queue,
Serializable item)
throws InterruptedException
untake in interface org.mule.runtime.core.internal.util.queue.QueueTransactionContextInterruptedExceptionpublic void clear(org.mule.runtime.core.internal.util.queue.QueueStore queue)
throws InterruptedException
clear in interface org.mule.runtime.core.internal.util.queue.QueueTransactionContextInterruptedExceptionpublic Serializable poll(org.mule.runtime.core.internal.util.queue.QueueStore queue, long pollTimeout) throws InterruptedException
poll in interface org.mule.runtime.core.internal.util.queue.QueueTransactionContextInterruptedExceptionpublic Serializable peek(org.mule.runtime.core.internal.util.queue.QueueStore queue)
peek in interface org.mule.runtime.core.internal.util.queue.QueueTransactionContextpublic int size(org.mule.runtime.core.internal.util.queue.QueueStore queue)
size in interface org.mule.runtime.core.internal.util.queue.QueueTransactionContextCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.