com.hazelcast.collection
Class AbstractCollectionProxyImpl<S extends RemoteService,E>
java.lang.Object
com.hazelcast.spi.AbstractDistributedObject<S>
com.hazelcast.collection.AbstractCollectionProxyImpl<S,E>
- All Implemented Interfaces:
- DistributedObject, InitializingObject
- Direct Known Subclasses:
- ListProxyImpl, SetProxyImpl
public abstract class AbstractCollectionProxyImpl<S extends RemoteService,E>
- extends AbstractDistributedObject<S>
- implements InitializingObject
Methods inherited from class com.hazelcast.spi.AbstractDistributedObject |
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getPartitionKey, getService, getServiceName, hashCode, invalidate, postDestroy, throwNotActiveException, toString |
name
protected final String name
partitionId
protected final int partitionId
AbstractCollectionProxyImpl
protected AbstractCollectionProxyImpl(String name,
NodeEngine nodeEngine,
S service)
initialize
public void initialize()
- Specified by:
initialize
in interface InitializingObject
getConfig
protected abstract CollectionConfig getConfig(NodeEngine nodeEngine)
getName
public String getName()
- Description copied from interface:
DistributedObject
- Returns the unique name for this DistributedObject. The returned value will never be null.
- Specified by:
getName
in interface DistributedObject
- Returns:
- the unique name for this object.
add
public boolean add(E e)
remove
public boolean remove(Object o)
size
public int size()
isEmpty
public boolean isEmpty()
contains
public boolean contains(Object o)
containsAll
public boolean containsAll(Collection<?> c)
addAll
public boolean addAll(Collection<? extends E> c)
retainAll
public boolean retainAll(Collection<?> c)
removeAll
public boolean removeAll(Collection<?> c)
clear
public void clear()
iterator
public Iterator<E> iterator()
toArray
public Object[] toArray()
toArray
public <T> T[] toArray(T[] a)
addItemListener
public String addItemListener(ItemListener<E> listener,
boolean includeValue)
removeItemListener
public boolean removeItemListener(String registrationId)
invoke
protected <T> T invoke(CollectionOperation operation)
throwExceptionIfNull
protected void throwExceptionIfNull(Object o)
throwExceptionIfNegative
protected void throwExceptionIfNegative(int index)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.