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() |
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 DistributedObjectpublic String getName()
getName in interface DistributedObjectpublic String getPartitionKey()
getPartitionKey in interface DistributedObjectpublic final void destroy()
destroy in interface DistributedObjectCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.