com.hazelcast.collection.impl.txnqueue
public abstract class TransactionalQueueProxySupport extends AbstractDistributedObject<QueueService> implements TransactionalObject
Modifier and Type | Field and Description |
---|---|
protected QueueConfig |
config |
protected String |
name |
protected int |
partitionId |
protected TransactionSupport |
tx |
PARTITIONING_STRATEGY
Modifier | Constructor and Description |
---|---|
protected |
TransactionalQueueProxySupport(NodeEngine nodeEngine,
QueueService service,
String name,
TransactionSupport tx) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkTransactionState() |
String |
getName()
Returns the unique name for this DistributedObject.
|
String |
getServiceName()
Returns the service name for this object.
|
boolean |
offerInternal(Data data,
long timeout) |
Data |
peekInternal(long timeout) |
Data |
pollInternal(long timeout) |
int |
size() |
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getOperationService, getPartitionKey, getService, hashCode, invalidate, postDestroy, throwNotActiveException, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, getId, getPartitionKey
protected final String name
protected final TransactionSupport tx
protected final int partitionId
protected final QueueConfig config
protected TransactionalQueueProxySupport(NodeEngine nodeEngine, QueueService service, String name, TransactionSupport tx)
protected void checkTransactionState()
public boolean offerInternal(Data data, long timeout)
public Data pollInternal(long timeout)
public Data peekInternal(long timeout)
public int size()
public String getName()
DistributedObject
getName
in interface DistributedObject
public final String getServiceName()
DistributedObject
getServiceName
in interface DistributedObject
getServiceName
in class AbstractDistributedObject<QueueService>
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.