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) |
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.
|
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() |
protected void |
throwExceptionIfNegative(int index) |
protected void |
throwExceptionIfNull(Object o) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getPartitionKey, getService, getServiceName, hashCode, invalidate, postDestroy, throwNotActiveException, toStringprotected final String name
protected final int partitionId
protected AbstractCollectionProxyImpl(String name, NodeEngine nodeEngine, S service)
public void initialize()
initialize in interface InitializingObjectprotected abstract CollectionConfig getConfig(NodeEngine nodeEngine)
public String getName()
DistributedObjectgetName in interface DistributedObjectpublic 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 throwExceptionIfNull(Object o)
protected void throwExceptionIfNegative(int index)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.