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, wait
destroy, getName, getPartitionKey
public 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>
InterruptedException
public E take() throws InterruptedException
take
in interface BaseQueue<E>
take
in interface TransactionalQueue<E>
InterruptedException
public E poll()
public E poll(long timeout, TimeUnit unit) throws InterruptedException
poll
in interface BaseQueue<E>
poll
in interface TransactionalQueue<E>
InterruptedException
public E peek()
peek
in interface TransactionalQueue<E>
public E peek(long timeout, TimeUnit unit) throws InterruptedException
peek
in interface TransactionalQueue<E>
InterruptedException
public int size()
public String getServiceName()
getServiceName
in interface DistributedObject
protected String getTransactionId()
public final void destroy()
destroy
in interface DistributedObject
public String getName()
getName
in interface DistributedObject
public String getPartitionKey()
getPartitionKey
in interface DistributedObject
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.