T
- type of the transactional contextpublic class QueueTypeTransactionContextAdapter<T extends QueueTransactionContext> extends Object implements QueueTransactionContext
QueueTransactionContext
based on the queue type, persistent or transient.Constructor and Description |
---|
QueueTypeTransactionContextAdapter(QueueTransactionContextFactory<T> queueTransactionContextFactory) |
Modifier and Type | Method and Description |
---|---|
void |
clear(QueueStore queue) |
T |
getTransactionContext() |
boolean |
offer(QueueStore queue,
Serializable item,
long offerTimeout) |
Serializable |
peek(QueueStore queue) |
Serializable |
poll(QueueStore queue,
long pollTimeout) |
int |
size(QueueStore queue) |
void |
untake(QueueStore queue,
Serializable item) |
public QueueTypeTransactionContextAdapter(QueueTransactionContextFactory<T> queueTransactionContextFactory)
public boolean offer(QueueStore queue, Serializable item, long offerTimeout) throws InterruptedException
offer
in interface QueueTransactionContext
InterruptedException
public void untake(QueueStore queue, Serializable item) throws InterruptedException
untake
in interface QueueTransactionContext
InterruptedException
public void clear(QueueStore queue) throws InterruptedException
clear
in interface QueueTransactionContext
InterruptedException
public Serializable poll(QueueStore queue, long pollTimeout) throws InterruptedException
poll
in interface QueueTransactionContext
InterruptedException
public Serializable peek(QueueStore queue) throws InterruptedException
peek
in interface QueueTransactionContext
InterruptedException
public int size(QueueStore queue)
size
in interface QueueTransactionContext
public T getTransactionContext()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.