public class ClientTxnQueueProxy<E> extends Object implements TransactionalQueue<E>
| Constructor and Description |
|---|
ClientTxnQueueProxy(String name,
ClientTransactionContext transactionContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Object |
getId() |
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, getId, 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 getName()
getName in interface DistributedObjectpublic String getServiceName()
getServiceName in interface DistributedObjectpublic final void destroy()
destroy in interface DistributedObjectpublic Object getId()
getId in interface DistributedObjectpublic String getPartitionKey()
getPartitionKey in interface DistributedObjectCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.