|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.extensions.ChangeExtension
public class ChangeExtension
Extensions for the GigaSpace.change(com.gigaspaces.query.ISpaceQuery, ChangeSet, ChangeModifiers, long)
API which simplify common usage patterns.
Constructor Summary | |
---|---|
ChangeExtension()
|
Method Summary | ||
---|---|---|
static
|
addAndGet(GigaSpace gigaSpace,
IdQuery<T> idQuery,
String path,
D delta)
Atomically adds the given value to the current value of an entry's property. |
|
static
|
addAndGet(GigaSpace gigaSpace,
IdQuery<T> idQuery,
String path,
D delta,
ChangeModifiers modifiers,
long timeout,
TimeUnit timeUnit)
Atomically adds the given value to the current value of an entry's property. |
|
static
|
addAndGet(GigaSpace gigaSpace,
IdQuery<T> idQuery,
String path,
D delta,
long timeout,
TimeUnit timeUnit)
Atomically adds the given value to the current value of an entry's property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeExtension()
Method Detail |
---|
public static <T,D extends Number> D addAndGet(GigaSpace gigaSpace, IdQuery<T> idQuery, String path, D delta)
gigaSpace
- the gigaspace which stores the entry.idQuery
- id the query which is used to locate the entry.path
- the path to the number property which is being modified.delta
- the value to add.
NullPointerException
if no entry was found.public static <T,D extends Number> D addAndGet(GigaSpace gigaSpace, IdQuery<T> idQuery, String path, D delta, long timeout, TimeUnit timeUnit)
gigaSpace
- the gigaspace which stores the entry.idQuery
- id the query which is used to locate the entry.path
- the path to the number property which is being modified.delta
- the value to add.timeout
- time to wait if the entry is locked under a transaction.timeUnit
- units for the timeout.
NullPointerException
if no entry was found.public static <T,D extends Number> D addAndGet(GigaSpace gigaSpace, IdQuery<T> idQuery, String path, D delta, ChangeModifiers modifiers, long timeout, TimeUnit timeUnit)
gigaSpace
- the gigaspace which stores the entry.idQuery
- id the query which is used to locate the entry.path
- the path to the number property which is being modified.delta
- the value to add.modifiers
- the change modifiers to use.timeout
- time to wait if the entry is locked under a transaction.timeUnit
- units for the timeout.
NullPointerException
if no entry was found.
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |