com.hazelcast.core
Interface TransactionalSet<E>

All Superinterfaces:
DistributedObject, TransactionalObject
All Known Implementing Classes:
ClientTxnSetProxy, TransactionalSetProxy

public interface TransactionalSet<E>
extends TransactionalObject

Transactional implementation of ISet.


Method Summary
 boolean add(E e)
          Add new item to transactional set.
 boolean remove(E e)
          Remove item from transactional set.
 int size()
          Returns the size of the set.
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getName, getPartitionKey, getServiceName
 

Method Detail

add

boolean add(E e)
Add new item to transactional set.

Parameters:
e - item added to transactional set
Returns:
true if item is added successfully

remove

boolean remove(E e)
Remove item from transactional set.

Parameters:
e - item removed from transactional set
Returns:
true if item is remove successfully

size

int size()
Returns the size of the set.

Returns:
the size of the set


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.