E - the type of elements in this queuepublic class ClientTxnQueueProxy<E> extends Object implements TransactionalQueue<E>
TransactionalQueue.| Constructor and Description |
|---|
ClientTxnQueueProxy(String name,
ClientTransactionContext transactionContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
String |
getName() |
String |
getPartitionKey() |
String |
getServiceName() |
protected String |
getTransactionId() |
boolean |
offer(E e) |
boolean |
offer(E e,
long timeout,
TimeUnit unit) |
E |
peek() |
E |
peek(long timeout,
TimeUnit unit) |
E |
poll() |
E |
poll(long timeout,
TimeUnit unit) |
int |
size() |
E |
take() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getName, getPartitionKeypublic ClientTxnQueueProxy(String name, ClientTransactionContext transactionContext)
public boolean offer(E e)
public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException
offer in interface BaseQueue<E>offer in interface TransactionalQueue<E>InterruptedExceptionpublic E take() throws InterruptedException
take in interface BaseQueue<E>take in interface TransactionalQueue<E>InterruptedExceptionpublic E poll()
public E poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BaseQueue<E>poll in interface TransactionalQueue<E>InterruptedExceptionpublic E peek()
peek in interface TransactionalQueue<E>public E peek(long timeout, TimeUnit unit) throws InterruptedException
peek in interface TransactionalQueue<E>InterruptedExceptionpublic int size()
public String getServiceName()
getServiceName in interface DistributedObjectprotected String getTransactionId()
public final void destroy()
destroy in interface DistributedObjectpublic String getName()
getName in interface DistributedObjectpublic String getPartitionKey()
getPartitionKey in interface DistributedObjectCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.