public abstract class AbstractCollectionProxyImpl<S extends RemoteService,E> extends AbstractDistributedObject<S> implements InitializingObject
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected int |
partitionId |
PARTITIONING_STRATEGY
Modifier | Constructor and Description |
---|---|
protected |
AbstractCollectionProxyImpl(String name,
NodeEngine nodeEngine,
S service) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
String |
addItemListener(ItemListener<E> listener,
boolean includeValue) |
protected void |
checkIndexNotNegative(int index) |
protected void |
checkObjectNotNull(Object o) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
protected abstract CollectionConfig |
getConfig(NodeEngine nodeEngine) |
String |
getName()
Returns the unique name for this DistributedObject.
|
int |
getPartitionId() |
void |
initialize() |
protected <T> T |
invoke(CollectionOperation operation) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeItemListener(String registrationId) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
destroy, equals, getDistributedObjectName, getNameAsPartitionAwareData, getNodeEngine, getOperationService, getPartitionId, getPartitionKey, getService, getServiceName, hashCode, invalidate, invokeOnPartition, postDestroy, preDestroy, throwNotActiveException, toData, toString
protected final String name
protected final int partitionId
protected AbstractCollectionProxyImpl(String name, NodeEngine nodeEngine, S service)
public void initialize()
initialize
in interface InitializingObject
protected abstract CollectionConfig getConfig(NodeEngine nodeEngine)
public String getName()
DistributedObject
DistributedObjectUtil.getName(DistributedObject)
because this might be also a PrefixedDistributedObject
.getName
in interface DistributedObject
public int getPartitionId()
public boolean add(E e)
public boolean remove(Object o)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
public boolean addAll(Collection<? extends E> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public String addItemListener(ItemListener<E> listener, boolean includeValue)
public boolean removeItemListener(String registrationId)
protected <T> T invoke(CollectionOperation operation)
protected void checkObjectNotNull(Object o)
protected void checkIndexNotNegative(int index)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.