public class ChangeSet extends Object implements Externalizable, Textualizable
Constructor and Description |
---|
ChangeSet()
Constructs an empty change set
|
Modifier and Type | Method and Description |
---|---|
ChangeSet |
addAllToCollection(String path,
Collection<? extends Serializable> newItems)
Adds the given items to a collection property
|
ChangeSet |
addAllToCollection(String path,
Serializable... newItems)
Adds the given items to a collection property
|
ChangeSet |
addToCollection(String path,
Serializable newItem)
Adds the given item to a collection property.
|
ChangeSet |
custom(SpaceEntryMutator changeOperation)
Adds a custom change operation to be executed.
|
ChangeSet |
custom(String name,
ChangeFunction<MutableServerEntry,Object> operation) |
ChangeSet |
decrement(String path,
byte delta)
Decrement a byte property with the given delta.
|
ChangeSet |
decrement(String path,
double delta)
Decrement a double property with the given delta.
|
ChangeSet |
decrement(String path,
float delta)
Decrement a float property with the given delta.
|
ChangeSet |
decrement(String path,
int delta)
Decrement a integer property with the given delta.
|
ChangeSet |
decrement(String path,
long delta)
Decrement a long property with the given delta.
|
ChangeSet |
decrement(String path,
short delta)
Decrement a short property with the given delta.
|
ChangeSet |
disablePathCaching(String... nonCachedPaths)
Since 14.2.0
|
ChangeSet |
increment(String path,
byte delta)
Increment a byte property with the given delta.
|
ChangeSet |
increment(String path,
double delta)
Increment a double property with the given delta.
|
ChangeSet |
increment(String path,
float delta)
Increment a float property with the given delta.
|
ChangeSet |
increment(String path,
int delta)
Increment a integer property with the given delta.
|
ChangeSet |
increment(String path,
long delta)
Increment a long property with the given delta.
|
ChangeSet |
increment(String path,
Number delta)
Increment a numeric property with the given delta.
|
ChangeSet |
increment(String path,
short delta)
Increment a short property with the given delta.
|
boolean |
isEmpty()
Returns true if the change set is empty, i.e.
|
ChangeSet |
lease(long lease)
Change the entry lease with the new lease.
|
ChangeSet |
putInMap(String path,
Serializable key,
Serializable value)
Puts the given key and value in a map property.
|
void |
readExternal(ObjectInput in) |
ChangeSet |
removeFromCollection(String path,
Serializable itemToRemove)
Removes the given item from a collection property.
|
ChangeSet |
removeFromMap(String path,
Serializable key)
Removes the given key from a map property.
|
ChangeSet |
set(String path,
Serializable value)
Sets the value of the given path.
|
String |
toString() |
void |
toText(Textualizer textualizer) |
ChangeSet |
unset(String path)
Unsets the specified path.
|
void |
writeExternal(ObjectOutput out) |
public boolean isEmpty()
public ChangeSet custom(SpaceEntryMutator changeOperation)
public ChangeSet custom(String name, ChangeFunction<MutableServerEntry,Object> operation)
public ChangeSet set(String path, Serializable value)
path
- The path that needs its value set.value
- The value to set for the given path.public ChangeSet unset(String path)
path
- Path pointing to the requested property.public ChangeSet increment(String path, byte delta)
path
- The path pointing to a numeric property that needs its value increased.delta
- The delta to increment by.public ChangeSet increment(String path, short delta)
path
- The path pointing to a numeric property that needs its value increased.delta
- The delta to increment by.public ChangeSet increment(String path, int delta)
path
- The path pointing to a numeric property that needs its value increased.delta
- The delta to increment by.public ChangeSet increment(String path, long delta)
path
- The path pointing to a numeric property that needs its value increased.delta
- The delta to increment by.public ChangeSet increment(String path, float delta)
path
- The path pointing to a numeric property that needs its value increased.delta
- The delta to increment by.public ChangeSet increment(String path, double delta)
path
- The path pointing to a numeric property that needs its value increased.delta
- The delta to increment by.public ChangeSet increment(String path, Number delta)
path
- The path pointing to a numeric property that needs its value increased.delta
- The delta to increment by.public ChangeSet decrement(String path, byte delta)
path
- The path pointing to a numeric property that needs its value decreased.delta
- The delta to decrement by.public ChangeSet decrement(String path, short delta)
path
- The path pointing to a numeric property that needs its value decreased.delta
- The delta to decrement by.public ChangeSet decrement(String path, int delta)
path
- The path pointing to a numeric property that needs its value decreased.delta
- The delta to decrement by.public ChangeSet decrement(String path, long delta)
path
- The path pointing to a numeric property that needs its value decreased.delta
- The delta to decrement by.public ChangeSet decrement(String path, float delta)
path
- The path pointing to a numeric property that needs its value decreased.delta
- The delta to decrement by.public ChangeSet decrement(String path, double delta)
path
- The path pointing to a numeric property that needs its value decreased.delta
- The delta to decrement by.public ChangeSet addToCollection(String path, Serializable newItem)
path
- The path pointing to the collection that the item should be added to.newItem
- The item to add to the collection.public ChangeSet addAllToCollection(String path, Serializable... newItems)
path
- The path pointing to the collection that the item should be added to.newItems
- The items to add to the collection.public ChangeSet addAllToCollection(String path, Collection<? extends Serializable> newItems)
path
- The path pointing to the collection that the item should be added to.newItems
- The items to add to the collection.public ChangeSet removeFromCollection(String path, Serializable itemToRemove)
path
- The path pointing to the collection that the item should be removed
from.itemToRemove
- The item to remove from the collection.public ChangeSet putInMap(String path, Serializable key, Serializable value)
path
- The path pointing to the map that the key and value should be put intokey
- The map's key.value
- The value to associate with the given key.public ChangeSet removeFromMap(String path, Serializable key)
path
- The path pointing to the map that the key should be removed from.key
- The map's key.public ChangeSet lease(long lease)
lease
- Change the lease duration with the new lease, the lease specifies how much time
the lease of a changed entry should be after the change operation takes affect
in milliseconds.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void toText(Textualizer textualizer)
toText
in interface Textualizable
Copyright © GigaSpaces.