|
GigaSpaces XAP 9.7.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.core.DefaultGigaSpace
public class DefaultGigaSpace
Default implementation of GigaSpace. Constructed with IJSpace,
TransactionProvider and
ExceptionTranslator.
Operations are delegated to IJSpace with transactions acquired using
TransactionProvider. Any exceptions thrown during the
operations are translated using ExceptionTranslator.
Allows to set default timeouts for read and take operations and default lease for write operation.
| Constructor Summary | |
|---|---|
DefaultGigaSpace(IJSpace space,
TransactionProvider txProvider,
ExceptionTranslator exTranslator,
int defaultIsolationLevel)
Constructs a new DefaultGigaSpace implementation. |
|
| Method Summary | ||
|---|---|---|
|
asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
AsyncFutureListener<ChangeResult<T>> listener)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers)
Changes an existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers,
AsyncFutureListener<ChangeResult<T>> listener)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout,
AsyncFutureListener<ChangeResult<T>> listener)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
long timeout)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
long timeout,
AsyncFutureListener<ChangeResult<T>> listener)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(T template,
ChangeSet changeSet)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(T template,
ChangeSet changeSet,
AsyncFutureListener<ChangeResult<T>> listener)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(T template,
ChangeSet changeSet,
ChangeModifiers modifiers)
Changes an existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(T template,
ChangeSet changeSet,
ChangeModifiers modifiers,
AsyncFutureListener<ChangeResult<T>> listener)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(T template,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(T template,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout,
AsyncFutureListener<ChangeResult<T>> listener)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(T template,
ChangeSet changeSet,
long timeout)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncChange(T template,
ChangeSet changeSet,
long timeout,
AsyncFutureListener<ChangeResult<T>> listener)
Changes existing objects in space in an asynchronous manner, returning immidiately with a future. |
|
|
asyncRead(ISpaceQuery<T> template)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(ISpaceQuery<T> template,
AsyncFutureListener<T> listener)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(ISpaceQuery<T> template,
long timeout)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(ISpaceQuery<T> template,
long timeout,
AsyncFutureListener<T> listener)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(ISpaceQuery<T> template,
long timeout,
int modifiers)
|
|
|
asyncRead(ISpaceQuery<T> template,
long timeout,
int modifiers,
AsyncFutureListener<T> listener)
|
|
|
asyncRead(ISpaceQuery<T> template,
long timeout,
ReadModifiers modifiers)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(ISpaceQuery<T> template,
long timeout,
ReadModifiers modifiers,
AsyncFutureListener<T> listener)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(T template)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(T template,
AsyncFutureListener<T> listener)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(T template,
long timeout)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(T template,
long timeout,
AsyncFutureListener<T> listener)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(T template,
long timeout,
int modifiers)
|
|
|
asyncRead(T template,
long timeout,
int modifiers,
AsyncFutureListener<T> listener)
|
|
|
asyncRead(T template,
long timeout,
ReadModifiers modifiers)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncRead(T template,
long timeout,
ReadModifiers modifiers,
AsyncFutureListener<T> listener)
Reads any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(ISpaceQuery<T> template)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(ISpaceQuery<T> template,
AsyncFutureListener<T> listener)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(ISpaceQuery<T> template,
long timeout)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(ISpaceQuery<T> template,
long timeout,
AsyncFutureListener<T> listener)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(ISpaceQuery<T> template,
long timeout,
int modifiers)
|
|
|
asyncTake(ISpaceQuery<T> template,
long timeout,
int modifiers,
AsyncFutureListener<T> listener)
|
|
|
asyncTake(ISpaceQuery<T> template,
long timeout,
TakeModifiers modifiers)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(ISpaceQuery<T> template,
long timeout,
TakeModifiers modifiers,
AsyncFutureListener<T> listener)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(T template)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(T template,
AsyncFutureListener<T> listener)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(T template,
long timeout)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(T template,
long timeout,
AsyncFutureListener<T> listener)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(T template,
long timeout,
int modifiers)
|
|
|
asyncTake(T template,
long timeout,
int modifiers,
AsyncFutureListener<T> listener)
|
|
|
asyncTake(T template,
long timeout,
TakeModifiers modifiers)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
asyncTake(T template,
long timeout,
TakeModifiers modifiers,
AsyncFutureListener<T> listener)
Take (remove) any matching entry from the space in an asynchronous manner. |
|
|
change(ISpaceQuery<T> query,
ChangeSet changeSet)
Changes existing objects in space, returning a change result which provides details of the operation affect. |
|
|
change(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers)
Changes existing objects in space, returning a change result which provides details of the operation affect. |
|
|
change(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout)
Changes existing objects in space, returning a change result which provides details of the operation affect. |
|
|
change(ISpaceQuery<T> query,
ChangeSet changeSet,
long timeout)
Changes existing objects in space, returning a change result which provides details of the operation affect. |
|
|
change(T template,
ChangeSet changeSet)
Changes existing objects in space, returning a change result which provides details of the operation affect. |
|
|
change(T template,
ChangeSet changeSet,
ChangeModifiers modifiers)
Changes existing objects in space, returning a change result which provides details of the operation affect. |
|
|
change(T template,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout)
Changes existing objects in space, returning a change result which provides details of the operation affect. |
|
|
change(T template,
ChangeSet changeSet,
long timeout)
Changes existing objects in space, returning a change result which provides details of the operation affect. |
|
void |
clear(Object template)
Removes the entries that match the specified template and the specified transaction from this space. |
|
int |
clear(Object template,
ClearModifiers modifiers)
Removes the entries that match the specified template and the specified transaction from this space. |
|
int |
clear(Object template,
int modifiers)
|
|
int |
count(Object template)
Count any matching entry from the space. |
|
int |
count(Object template,
CountModifiers modifiers)
Count any matching entries from the space. |
|
int |
count(Object template,
int modifiers)
|
|
|
distExecute(DistributedTask<T,R> task,
AsyncFutureListener<R> listener)
|
|
|
execute(DistributedTask<T,R> task)
Executes the task on all the primary space nodes within the cluster (broadcast). |
|
|
execute(DistributedTask<T,R> task,
AsyncFutureListener<R> listener)
|
|
|
execute(DistributedTask<T,R> task,
Object... routings)
Executes a task on all the nodes that correspond to the list of routing values. |
|
|
execute(Task<T> task)
Executes a task on a specific space node. |
|
|
execute(Task<T> task,
AsyncFutureListener<T> listener)
Executes a task on a specific space node. |
|
|
execute(Task<T> task,
Object routing)
Executes a task on a specific space node. |
|
|
execute(Task<T> task,
Object routing,
AsyncFutureListener<T> listener)
Executes a task on a specific space node. |
|
|
executorBuilder(AsyncResultsReducer<T,R> reducer)
Constructs an executor builder allowing to accumulate different tasks required to be executed into a single execute mechanism with all the results reduced by the reducer provided. |
|
GigaSpace |
getClustered()
Returns a clustered view of this GigaSpace instance. |
|
Transaction |
getCurrentTransaction()
Returns the current running transaction. |
|
ChangeModifiers |
getDefaultChangeModifiers()
Gets the default ChangeModifiers set during this GigaSpace configuration. |
|
ClearModifiers |
getDefaultClearModifiers()
Gets the default ClearModifiers set during this GigaSpace configuration. |
|
CountModifiers |
getDefaultCountModifiers()
Gets the default CountModifiers set during this GigaSpace configuration. |
|
ReadModifiers |
getDefaultReadModifiers()
Gets the default ReadModifiers set during this GigaSpace configuration. |
|
TakeModifiers |
getDefaultTakeModifiers()
Gets the default TakeModifiers set during this GigaSpace configuration. |
|
WriteModifiers |
getDefaultWriteModifiers()
Gets the default WriteModifiers set during this GigaSpace configuration. |
|
ExceptionTranslator |
getExceptionTranslator()
Returns the exception translator associated with this GigaSpace instance. |
|
int |
getModifiersForIsolationLevel()
Gets the isolation level from the current running transaction (enabling the usage of Spring declarative isolation level settings). |
|
String |
getName()
Returns the name of the GigaSpace. |
|
IJSpace |
getSpace()
Returns the IJSpace used by this GigaSpace implementation to delegate
different space operations. |
|
TransactionProvider |
getTxProvider()
Returns the transaction provider allowing to access the current running transaction. |
|
GigaSpaceTypeManager |
getTypeManager()
Gets the type manager of this GigaSpace instance. |
|
IteratorBuilder |
iterator()
Returns an iterator builder allowing to configure and create a GSIterator
over the Space. |
|
DataEventSession |
newDataEventSession()
Creates a new DataEventSession with the default configuration. |
|
DataEventSession |
newDataEventSession(EventSessionConfig config)
Creates a new DataEventSession with the specified configuration. |
|
|
read(ISpaceQuery<T> template)
Read any matching object from the space, blocking until one exists. |
|
|
read(ISpaceQuery<T> template,
long timeout)
Read any matching object from the space, blocking until one exists. |
|
|
read(ISpaceQuery<T> template,
long timeout,
int modifiers)
|
|
|
read(ISpaceQuery<T> template,
long timeout,
ReadModifiers modifiers)
Read any matching object from the space, blocking until one exists. |
|
|
read(T template)
Read any matching object from the space, blocking until one exists. |
|
|
read(T template,
long timeout)
Read any matching object from the space, blocking until one exists. |
|
|
read(T template,
long timeout,
int modifiers)
|
|
|
read(T template,
long timeout,
ReadModifiers modifiers)
Read any matching object from the space, blocking until one exists. |
|
|
readById(Class<T> clazz,
Object id)
Read an object from the space matching its id and the class. |
|
|
readById(Class<T> clazz,
Object id,
Object routing)
Read an object from the space matching its id, the class and the routing value. |
|
|
readById(Class<T> clazz,
Object id,
Object routing,
long timeout)
Read an object from the space matching its id, the class and the routing value. |
|
|
readById(Class<T> clazz,
Object id,
Object routing,
long timeout,
int modifiers)
|
|
|
readById(Class<T> clazz,
Object id,
Object routing,
long timeout,
ReadModifiers modifiers)
Read an object from the space matching its id, the class and the routing value. |
|
|
readById(IdQuery<T> query)
Read an object from the space matching the specified id query. |
|
|
readById(IdQuery<T> query,
long timeout)
Read an object from the space matching the specified id query. |
|
|
readById(IdQuery<T> query,
long timeout,
int modifiers)
|
|
|
readById(IdQuery<T> query,
long timeout,
ReadModifiers modifiers)
Read an object from the space matching the specified id query. |
|
|
readByIds(Class<T> clazz,
Object[] ids)
Read objects from the space matching their IDs and the specified class. |
|
|
readByIds(Class<T> clazz,
Object[] ids,
int modifiers)
|
|
|
readByIds(Class<T> clazz,
Object[] ids,
Object routing)
Read objects from the space matching their IDs, the specified class and routing key. |
|
|
readByIds(Class<T> clazz,
Object[] ids,
Object[] routings)
Read objects from the space matching their IDs, the specified class and the routing keys. |
|
|
readByIds(Class<T> clazz,
Object[] ids,
Object[] routings,
int modifiers)
|
|
|
readByIds(Class<T> clazz,
Object[] ids,
Object[] routings,
ReadModifiers modifiers)
Read objects from the space matching their IDs, the specified class and the routing keys, with the provided ReadModifiers. |
|
|
readByIds(Class<T> clazz,
Object[] ids,
Object routing,
int modifiers)
|
|
|
readByIds(Class<T> clazz,
Object[] ids,
Object routing,
ReadModifiers modifiers)
Read objects from the space matching their IDs, the specified class type and routing key, with the provided ReadModifiers. |
|
|
readByIds(IdsQuery<T> query)
Read objects from the space matching the specified IDs query. |
|
|
readByIds(IdsQuery<T> query,
int modifiers)
|
|
|
readByIds(IdsQuery<T> query,
ReadModifiers modifiers)
Read objects from the space matching the specified IDs query, with the provided ReadModifiers. |
|
|
readIfExists(ISpaceQuery<T> template)
Read any matching object from the space, returning null if
there currently is none. |
|
|
readIfExists(ISpaceQuery<T> template,
long timeout)
Read any matching object from the space, returning null if
there currently is none. |
|
|
readIfExists(ISpaceQuery<T> template,
long timeout,
int modifiers)
|
|
|
readIfExists(ISpaceQuery<T> template,
long timeout,
ReadModifiers modifiers)
Read any matching object from the space, returning null if
there currently is none. |
|
|
readIfExists(T template)
Read any matching object from the space, returning null if
there currently is none. |
|
|
readIfExists(T template,
long timeout)
Read any matching object from the space, returning null if
there currently is none. |
|
|
readIfExists(T template,
long timeout,
int modifiers)
|
|
|
readIfExists(T template,
long timeout,
ReadModifiers modifiers)
Read any matching object from the space, returning null if
there currently is none. |
|
|
readIfExistsById(Class<T> clazz,
Object id)
Read an object from the space matching its id and the class. |
|
|
readIfExistsById(Class<T> clazz,
Object id,
Object routing)
Read an object from the space matching its id, the class and the routing value. |
|
|
readIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout)
Read an object from the space matching its id, the class and the routing value. |
|
|
readIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout,
int modifiers)
|
|
|
readIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout,
ReadModifiers modifiers)
Read an object from the space matching its id, the class and the routing value. |
|
|
readIfExistsById(IdQuery<T> query)
Read an object from the space matching the specified id query. |
|
|
readIfExistsById(IdQuery<T> query,
long timeout)
Read an object from the space matching the specified id query. |
|
|
readIfExistsById(IdQuery<T> query,
long timeout,
int modifiers)
|
|
|
readIfExistsById(IdQuery<T> query,
long timeout,
ReadModifiers modifiers)
Read an object from the space matching the specified id query. |
|
|
readMultiple(ISpaceQuery<T> template)
Read any matching entries from the space. |
|
|
readMultiple(ISpaceQuery<T> template,
int maxEntries)
Read any matching entries from the space. |
|
|
readMultiple(ISpaceQuery<T> template,
int maxEntries,
int modifiers)
|
|
|
readMultiple(ISpaceQuery<T> template,
int maxEntries,
ReadModifiers modifiers)
Read any matching entries from the space. |
|
|
readMultiple(T template)
Read any matching entries from the space. |
|
|
readMultiple(T template,
int maxEntries)
Read any matching entries from the space. |
|
|
readMultiple(T template,
int maxEntries,
int modifiers)
|
|
|
readMultiple(T template,
int maxEntries,
ReadModifiers modifiers)
Read any matching entries from the space. |
|
void |
setDefaultChangeModifiers(ChangeModifiers defaultChangeModifiers)
Sets the default ChangeModifiers when excecution change(Object, ChangeSet) |
|
void |
setDefaultClearModifiers(ClearModifiers defaultClearModifiers)
Sets the default ClearModifiers when excecution write(Object) |
|
void |
setDefaultCountModifiers(CountModifiers defaultCountModifiers)
Sets the default CountModifiers when excecution count(Object) |
|
void |
setDefaultReadModifiers(ReadModifiers defaultReadModifiers)
Sets the default ReadModifiers when excecution read(Object) |
|
void |
setDefaultReadTimeout(long defaultReadTimeout)
Sets the default read timeout when executing read(Object) or
readIfExists(Object) operations. |
|
void |
setDefaultTakeModifiers(TakeModifiers defaultTakeModifiers)
Sets the default TakeModifiers when excecution take(Object) |
|
void |
setDefaultTakeTimeout(long defaultTakeTimeout)
Sets the default take timeout when executing take(Object) or
takeIfExists(Object) operations. |
|
void |
setDefaultWriteLease(long defaultWriteLease)
Sets the default write lease when executing write(Object). |
|
void |
setDefaultWriteModifiers(WriteModifiers defaultWriteModifiers)
Sets the default WriteModifiers when excecution write(Object) |
|
void |
setName(String name)
|
|
|
snapshot(Object entry)
The process of serializing an entry for transmission to a JavaSpaces service will be identical if the same entry is used twice. |
|
|
take(ISpaceQuery<T> template)
Take (remove) any matching entry from the space, blocking until one exists. |
|
|
take(ISpaceQuery<T> template,
long timeout)
Take (remove) any matching entry from the space, blocking until one exists. |
|
|
take(ISpaceQuery<T> template,
long timeout,
int modifiers)
|
|
|
take(ISpaceQuery<T> template,
long timeout,
TakeModifiers modifiers)
Take (remove) any matching entry from the space, blocking until one exists. |
|
|
take(T template)
Take (remove) any matching entry from the space, blocking until one exists. |
|
|
take(T template,
long timeout)
Take (remove) any matching entry from the space, blocking until one exists. |
|
|
take(T template,
long timeout,
int modifiers)
|
|
|
take(T template,
long timeout,
TakeModifiers modifiers)
Take (remove) any matching entry from the space, blocking until one exists. |
|
|
takeById(Class<T> clazz,
Object id)
Take (remove) an object from the space matching its id and the class. |
|
|
takeById(Class<T> clazz,
Object id,
Object routing)
Take (remove) an object from the space matching its id, the class and the routing value. |
|
|
takeById(Class<T> clazz,
Object id,
Object routing,
long timeout)
Take (remove) an object from the space matching its id, the class and the routing value. |
|
|
takeById(Class<T> clazz,
Object id,
Object routing,
long timeout,
int modifiers)
|
|
|
takeById(Class<T> clazz,
Object id,
Object routing,
long timeout,
TakeModifiers modifiers)
Take (remove) an object from the space matching its id, the class and the routing value. |
|
|
takeById(IdQuery<T> query)
Take (remove) an object from the space matching the specified id query. |
|
|
takeById(IdQuery<T> query,
long timeout)
Take (remove) an object from the space matching the specified id query. |
|
|
takeById(IdQuery<T> query,
long timeout,
int modifiers)
|
|
|
takeById(IdQuery<T> query,
long timeout,
TakeModifiers modifiers)
Take (remove) an object from the space matching the specified id query. |
|
|
takeByIds(Class<T> clazz,
Object[] ids)
Take (remove) objects from the space matching their IDs and the specified class. |
|
|
takeByIds(Class<T> clazz,
Object[] ids,
int modifiers)
|
|
|
takeByIds(Class<T> clazz,
Object[] ids,
Object routing)
Take (remove) objects from the space matching their IDs, the specified class and routing key. |
|
|
takeByIds(Class<T> clazz,
Object[] ids,
Object[] routings)
Take (remove) objects from the space matching their IDs, the specified class and the routing keys. |
|
|
takeByIds(Class<T> clazz,
Object[] ids,
Object[] routings,
int modifiers)
|
|
|
takeByIds(Class<T> clazz,
Object[] ids,
Object[] routings,
TakeModifiers modifiers)
Take (remove) objects from the space matching their IDs, the specified class and the routing keys, with the provided ReadModifiers. |
|
|
takeByIds(Class<T> clazz,
Object[] ids,
Object routing,
int modifiers)
|
|
|
takeByIds(Class<T> clazz,
Object[] ids,
Object routing,
TakeModifiers modifiers)
Take (remove) objects from the space matching their IDs, the specified class type and routing key, with the provided ReadModifiers. |
|
|
takeByIds(IdsQuery<T> query)
Take (remove) objects from the space matching the specified IDs query. |
|
|
takeByIds(IdsQuery<T> query,
int modifiers)
|
|
|
takeByIds(IdsQuery<T> query,
TakeModifiers modifiers)
Take (remove) objects from the space matching the specified IDs query, with the provided ReadModifiers. |
|
|
takeIfExists(ISpaceQuery<T> template)
Take (remove) any matching entry from the space, returning null if
there currently is none. |
|
|
takeIfExists(ISpaceQuery<T> template,
long timeout)
Take (remove) any matching entry from the space, returning null if
there currently is none. |
|
|
takeIfExists(ISpaceQuery<T> template,
long timeout,
int modifiers)
|
|
|
takeIfExists(ISpaceQuery<T> template,
long timeout,
TakeModifiers modifiers)
Take (remove) any matching entry from the space, returning null if
there currently is none. |
|
|
takeIfExists(T template)
Take (remove) any matching entry from the space, returning null if
there currently is none. |
|
|
takeIfExists(T template,
long timeout)
Take (remove) any matching entry from the space, returning null if
there currently is none. |
|
|
takeIfExists(T template,
long timeout,
int modifiers)
|
|
|
takeIfExists(T template,
long timeout,
TakeModifiers modifiers)
Take (remove) any matching entry from the space, returning null if
there currently is none. |
|
|
takeIfExistsById(Class<T> clazz,
Object id)
Take (remove) an object from the space matching its id and the class. |
|
|
takeIfExistsById(Class<T> clazz,
Object id,
Object routing)
Take (remove) an object from the space matching its id, the class and the routing value. |
|
|
takeIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout)
Take (remove) an object from the space matching its id, the class and the routing value. |
|
|
takeIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout,
int modifiers)
|
|
|
takeIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout,
TakeModifiers modifiers)
Take (remove) an object from the space matching its id, the class and the routing value. |
|
|
takeIfExistsById(IdQuery<T> query)
Take (remove) an object from the space matching the specified id query. |
|
|
takeIfExistsById(IdQuery<T> query,
long timeout)
Take (remove) an object from the space matching the specified id query. |
|
|
takeIfExistsById(IdQuery<T> query,
long timeout,
int modifiers)
|
|
|
takeIfExistsById(IdQuery<T> query,
long timeout,
TakeModifiers modifiers)
Take (remove) an object from the space matching the specified id query. |
|
|
takeMultiple(ISpaceQuery<T> template)
Takes (removes) all the entries matching the specified template from this space. |
|
|
takeMultiple(ISpaceQuery<T> template,
int maxEntries)
Takes (removes) all the entries matching the specified template from this space. |
|
|
takeMultiple(ISpaceQuery<T> template,
int maxEntries,
int modifiers)
|
|
|
takeMultiple(ISpaceQuery<T> template,
int maxEntries,
TakeModifiers modifiers)
Takes (removes) all the entries matching the specified template from this space. |
|
|
takeMultiple(T template)
Takes (removes) all the entries matching the specified template from this space. |
|
|
takeMultiple(T template,
int maxEntries)
Takes (removes) all the entries matching the specified template from this space. |
|
|
takeMultiple(T template,
int maxEntries,
int modifiers)
|
|
|
takeMultiple(T template,
int maxEntries,
TakeModifiers modifiers)
Takes (removes) all the entries matching the specified template from this space. |
|
String |
toString()
|
|
|
wrapFuture(AsyncFuture<T> future,
Transaction tx)
|
|
|
wrapListener(AsyncFutureListener<T> listener,
Transaction tx)
|
|
|
write(T entry)
Writes a new object to the space, returning its LeaseContext. |
|
|
write(T entry,
long lease)
Writes a new object to the space, returning its LeaseContext. |
|
|
write(T entry,
long lease,
long timeout,
int modifiers)
|
|
|
write(T entry,
long lease,
long timeout,
WriteModifiers modifiers)
Writes a new object to the space, returning its LeaseContext. |
|
|
write(T entry,
WriteModifiers modifiers)
Writes a new object to the space, returning its LeaseContext. |
|
|
writeMultiple(T[] entries)
Writes the specified entries to this space. |
|
|
writeMultiple(T[] entries,
long lease)
Writes the specified entries to this space. |
|
|
writeMultiple(T[] entries,
long[] leases,
int updateModifiers)
|
|
|
writeMultiple(T[] entries,
long[] leases,
long timeout,
WriteModifiers modifiers)
Writes the specified entries to this space. |
|
|
writeMultiple(T[] entries,
long[] leases,
WriteModifiers modifiers)
Writes the specified entries to this space. |
|
|
writeMultiple(T[] entries,
long lease,
int updateModifiers)
|
|
|
writeMultiple(T[] entries,
long lease,
long timeout,
WriteModifiers modifiers)
Writes the specified entries to this space. |
|
|
writeMultiple(T[] entries,
long lease,
WriteModifiers modifiers)
Writes the specified entries to this space. |
|
|
writeMultiple(T[] entries,
WriteModifiers modifiers)
Writes the specified entries to this space. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultGigaSpace(IJSpace space,
TransactionProvider txProvider,
ExceptionTranslator exTranslator,
int defaultIsolationLevel)
space - The space implementation to delegate operations totxProvider - The transaction provider for declarative transaction ex.exTranslator - Exception translator to translate low level exceptions into GigaSpaces runtime
exceptiondefaultIsolationLevel - The default isolation level for read operations without modifiers. Maps to
TransactionDefinition.getIsolationLevel()
levels values.| Method Detail |
|---|
public void setName(String name)
public String getName()
GigaSpace
getName in interface GigaSpacepublic void setDefaultReadTimeout(long defaultReadTimeout)
read(Object) or
readIfExists(Object) operations.
public void setDefaultTakeTimeout(long defaultTakeTimeout)
take(Object) or
takeIfExists(Object) operations.
public void setDefaultWriteLease(long defaultWriteLease)
write(Object).
public void setDefaultWriteModifiers(WriteModifiers defaultWriteModifiers)
WriteModifiers when excecution write(Object)
public void setDefaultClearModifiers(ClearModifiers defaultClearModifiers)
ClearModifiers when excecution write(Object)
public void setDefaultCountModifiers(CountModifiers defaultCountModifiers)
CountModifiers when excecution count(Object)
public void setDefaultReadModifiers(ReadModifiers defaultReadModifiers)
ReadModifiers when excecution read(Object)
public void setDefaultTakeModifiers(TakeModifiers defaultTakeModifiers)
TakeModifiers when excecution take(Object)
public void setDefaultChangeModifiers(ChangeModifiers defaultChangeModifiers)
ChangeModifiers when excecution change(Object, ChangeSet)
public WriteModifiers getDefaultWriteModifiers()
GigaSpaceWriteModifiers set during this GigaSpace configuration.
This value is configured either by using a GigaSpaceConfigurer or through the pu.xml.
getDefaultWriteModifiers in interface GigaSpacepublic ClearModifiers getDefaultClearModifiers()
GigaSpaceClearModifiers set during this GigaSpace configuration.
This value is configured either by using a GigaSpaceConfigurer or through the pu.xml.
getDefaultClearModifiers in interface GigaSpacepublic CountModifiers getDefaultCountModifiers()
GigaSpaceCountModifiers set during this GigaSpace configuration.
This value is configured either by using a GigaSpaceConfigurer or through the pu.xml.
If there is an active transaction and that transaction has any isolation level set on it, that
isolation level will be merged into the returned modifiers with any previously set isolation level
on the modifiers overriden.
getDefaultCountModifiers in interface GigaSpacepublic ReadModifiers getDefaultReadModifiers()
GigaSpaceReadModifiers set during this GigaSpace configuration.
This value is configured either by using a GigaSpaceConfigurer or through the pu.xml.
If there is an active transaction and that transaction has any isolation level set on it, that
isolation level will be merged into the returned modifiers with any previously set isolation level
on the modifiers overriden.
getDefaultReadModifiers in interface GigaSpacepublic TakeModifiers getDefaultTakeModifiers()
GigaSpaceTakeModifiers set during this GigaSpace configuration.
This value is configured either by using a GigaSpaceConfigurer or through the pu.xml.
getDefaultTakeModifiers in interface GigaSpacepublic ChangeModifiers getDefaultChangeModifiers()
GigaSpaceChangeModifiers set during this GigaSpace configuration.
This value is configured either by using a GigaSpaceConfigurer or through the pu.xml.
getDefaultChangeModifiers in interface GigaSpacepublic IJSpace getSpace()
GigaSpaceIJSpace used by this GigaSpace implementation to delegate
different space operations.
Allows the use of space operations that are not exposed by this interface, as well as use as a parameter to other low level GigaSpace components.
If a transaction object is required for low level operations (as low level operations do not
have declarative transaction ex) the GigaSpace.getTxProvider() should be used to acquire the
current running transaction.
getSpace in interface GigaSpacepublic GigaSpace getClustered()
GigaSpaceGigaSpace instance.
GigaSpace gigaSpace = new GigaSpaceConfigurer(space).clustered(true).gigaSpace();
If this instance is already a clustered view (was initially constructed using the clustered flag), will return the same instance being used to issue the call.
If this is a GigaSpace that works directly with a cluster member, will return a clustered view (as if it was constructed with the clustered flag set). Note that this method might return different instances when being called by different threads.
GigaSpace nonClusteredViewOfGigaSpace= ... // acquire non-clustered view of a clustered space GigaSpace space=nonClusteredViewofGigaSpace.getClustered(); // space != nonClusteredViewOfSpace
GigaSpace clusteredViewOfGigaSpace= ... // acquire clustered view of a clustered space GigaSpace space=clusteredViewofGigaSpace.getClustered(); // space == clusteredViewOfSpace
getClustered in interface GigaSpaceGigaSpaceConfigurer.clustered(boolean)public TransactionProvider getTxProvider()
GigaSpace
getTxProvider in interface GigaSpacepublic ExceptionTranslator getExceptionTranslator()
GigaSpace
getExceptionTranslator in interface GigaSpace
public void clear(Object template)
throws DataAccessException
GigaSpaceIf the clear operation conducted without transaction (null as value) it will clear all entries that are not under transaction. Therefore entries under transaction would not be removed from the space.
The clear operation supports inheritance, therefore template class matching objects
and its sub classes matching objects are part of the candidates population
to be removed from the space. You can in fact clean all space objects (that are not under
transaction) by calling: gigaSpace.clear(null).
Notice: The clear operation does not remove notify templates, i.e. registration for notifications.
clear in interface GigaSpacetemplate - the template to use for matching
DataAccessException - In the event of an error, DataAccessException will
wrap a ClearException, accessible via DataAccessException.getRootCause().
public int clear(Object template,
int modifiers)
throws DataAccessException
clear in interface GigaSpaceDataAccessException
public int clear(Object template,
ClearModifiers modifiers)
throws DataAccessException
GigaSpaceIf the clear operation conducted without transaction (null as value) it will clear all entries that are not under transaction. Therefore entries under transaction would not be removed from the space.
The clear operation supports inheritance, therefore template class matching objects
and its sub classes matching objects are part of the candidates population
to be removed from the space. You can in fact remove all space objects (that are not under
transaction) by calling: gigaSpace.clear(null).
Notice: The clear operation does not remove notify templates i.e. registration for notifications.
clear in interface GigaSpacetemplate - the template to use for matchingmodifiers - one or a union of ClearModifiers.
DataAccessException - In the event of an error, DataAccessException will
wrap a ClearException, accessible via DataAccessException.getRootCause().
public int count(Object template)
throws DataAccessException
GigaSpace
count in interface GigaSpacetemplate - The template used for matching. Matching is done against the
template with null fields being wildcards
("match anything") other fields being values ("match
exactly on the serialized form").
DataAccessException
public int count(Object template,
int modifiers)
throws DataAccessException
count in interface GigaSpaceDataAccessException
public int count(Object template,
CountModifiers modifiers)
throws DataAccessException
GigaSpaceAllows to specify modifiers using ReadModifiers
which allows to programmatically control the isolation level this count operation
will be performed under.
count in interface GigaSpacetemplate - The template used for matching. Matching is done against the
template with null fields being wildcards
("match anything") other fields being values ("match
exactly on the serialized form").modifiers - one or a union of CountModifiers.
DataAccessException
public <T> ISpaceQuery<T> snapshot(Object entry)
throws DataAccessException
GigaSpaceThe process of serializing an entry for transmission to a JavaSpaces service will be identical if the same entry is used twice. This is most likely to be an issue with templates that are used repeatedly to search for entries with read or take.
The client-side implementations of read and take cannot reasonably avoid this duplicated effort, since they have no efficient way of checking whether the same template is being used without intervening modification.
The snapshot method gives the JavaSpaces service implementor a way to reduce the impact of repeated use of the same entry. Invoking snapshot with an Entry will return another Entry object that contains a snapshot of the original entry. Using the returned snapshot entry is equivalent to using the unmodified original entry in all operations on the same JavaSpaces service.
Modifications to the original entry will not affect the snapshot. You can snapshot a null
template; snapshot may or may not return null given a null template. The entry returned from snapshot
will be guaranteed equivalent to the original unmodified object only when used with the space. Using
the snapshot with any other JavaSpaces service will generate an IllegalArgumentException unless the
other space can use it because of knowledge about the JavaSpaces service that generated the snapshot.
The snapshot will be a different object from the original, may or may not have the same hash code,
and equals may or may not return true when invoked with the original object, even if the original object
is unmodified. A snapshot is guaranteed to work only within the virtual machine in which it was generated.
If a snapshot is passed to another virtual machine (for example, in a parameter of an RMI call), using
it--even with the same JavaSpaces service--may generate an IllegalArgumentException.
snapshot in interface GigaSpaceentry - The entry to snapshot
DataAccessException
public <T> T readById(Class<T> clazz,
Object id)
GigaSpacenull if there is no match.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
Note, if the space is partitioned, and the Entry has a specific property
for its routing value, the operation will broadcast to all partitions. The
GigaSpace.readById(Class, Object, Object) can be used to specify the routing.
readById in interface GigaSpaceclazz - The class of the entryid - The id of the entry
null if no matching is found within the timeout value.
public <T> T readById(Class<T> clazz,
Object id,
Object routing)
GigaSpacenull if there is no match.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
readById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing value
null if no matching is found within the timeout value.
public <T> T readById(Class<T> clazz,
Object id,
Object routing,
long timeout)
GigaSpacenull if there is no match within the specified timeout.
readById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing valuetimeout - The timeout value to wait for a matching entry if it does not exists within the space
null if no matching is found within the timeout value.
public <T> T readById(Class<T> clazz,
Object id,
Object routing,
long timeout,
int modifiers)
readById in interface GigaSpace
public <T> T readById(Class<T> clazz,
Object id,
Object routing,
long timeout,
ReadModifiers modifiers)
GigaSpacenull if there is no match within the specified timeout.
readById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing valuetimeout - The timeout value to wait for a matching entry if it does not exists within the spacemodifiers - one or a union of ReadModifiers.
null if no matching is found within the timeout value.
public <T> T readById(IdQuery<T> query)
throws DataAccessException
GigaSpacenull if there is no match.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
Note, if the space is partitioned, and the Entry has a specific property
for its routing value, the operation will broadcast to all partitions. The
GigaSpace.readById(Class, Object, Object) can be used to specify the routing.
readById in interface GigaSpacequery - Query to search by.
null if no matching is found within the timeout value.
DataAccessException
public <T> T readById(IdQuery<T> query,
long timeout)
throws DataAccessException
GigaSpacenull if there is no match within the specified timeout.
readById in interface GigaSpacequery - Query to search by.timeout - The timeout value to wait for a matching entry if it does not exists within the space
null if no matching is found within the timeout value.
DataAccessException
public <T> T readById(IdQuery<T> query,
long timeout,
int modifiers)
throws DataAccessException
readById in interface GigaSpaceDataAccessException
public <T> T readById(IdQuery<T> query,
long timeout,
ReadModifiers modifiers)
throws DataAccessException
GigaSpacenull if there is no match within the specified timeout.
readById in interface GigaSpacequery - Query to search by.timeout - The timeout value to wait for a matching entry if it does not exists within the spacemodifiers - one or a union of ReadModifiers.
null if no matching is found within the timeout value.
DataAccessException
public <T> T read(T template)
throws DataAccessException
GigaSpacenull if the timeout expires.
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
read in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").
DataAccessException
public <T> T read(T template,
long timeout)
throws DataAccessException
GigaSpacenull if the timeout expires.
read in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> T read(T template,
long timeout,
int modifiers)
throws DataAccessException
read in interface GigaSpaceDataAccessException
public <T> T read(T template,
long timeout,
ReadModifiers modifiers)
throws DataAccessException
GigaSpacenull if the timeout expires.
Overloads GigaSpace.read(Object,long) by adding a modifiers parameter.
Equivalent when called with the default modifier - ReadModifiers.REPEATABLE_READ.
Modifiers are used to define the behavior of a read operation.
read in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.modifiers - one or a union of ReadModifiers.
DataAccessException
public <T> T read(ISpaceQuery<T> template)
throws DataAccessException
GigaSpacenull if the timeout expires.
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
read in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.
DataAccessException
public <T> T read(ISpaceQuery<T> template,
long timeout)
throws DataAccessException
GigaSpacenull if the timeout expires.
read in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> T read(ISpaceQuery<T> template,
long timeout,
int modifiers)
throws DataAccessException
read in interface GigaSpaceDataAccessException
public <T> T read(ISpaceQuery<T> template,
long timeout,
ReadModifiers modifiers)
throws DataAccessException
GigaSpacenull if the timeout expires.
Overloads GigaSpace.read(Object,long) by adding a modifiers parameter.
Equivalent when called with the default modifier - ReadModifiers.REPEATABLE_READ.
Modifiers are used to define the behavior of a read operation.
read in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.modifiers - one or a union of ReadModifiers.
DataAccessException
public <T> AsyncFuture<T> asyncRead(T template)
throws DataAccessException
GigaSpacenull in case there was no match).
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
asyncRead in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").
DataAccessException
public <T> AsyncFuture<T> asyncRead(T template,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
asyncRead in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").listener - A listener to be notified when a result arrives
DataAccessException
public <T> AsyncFuture<T> asyncRead(T template,
long timeout)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncRead in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> AsyncFuture<T> asyncRead(T template,
long timeout,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncRead in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.listener - A listener to be notified when a result arrives
DataAccessException
public <T> AsyncFuture<T> asyncRead(T template,
long timeout,
int modifiers)
throws DataAccessException
asyncRead in interface GigaSpaceDataAccessException
public <T> AsyncFuture<T> asyncRead(T template,
long timeout,
ReadModifiers modifiers)
throws DataAccessException
GigaSpacenull in case there was no match).
Overloads GigaSpace.asyncRead(Object,long) by adding a modifiers parameter.
Equivalent when called with the default modifier - ReadModifiers.REPEATABLE_READ.
Modifiers are used to define the behavior of a read operation.
asyncRead in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.modifiers - one or a union of ReadModifiers.
DataAccessException
public <T> AsyncFuture<T> asyncRead(T template,
long timeout,
int modifiers,
AsyncFutureListener<T> listener)
throws DataAccessException
asyncRead in interface GigaSpaceDataAccessException
public <T> AsyncFuture<T> asyncRead(T template,
long timeout,
ReadModifiers modifiers,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
Overloads GigaSpace.asyncRead(Object,long) by adding a modifiers parameter.
Equivalent when called with the default modifier - ReadModifiers.REPEATABLE_READ.
Modifiers are used to define the behavior of a read operation.
asyncRead in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.modifiers - one or a union of ReadModifiers.listener - A listener to be notified when a result arrives
DataAccessException
public <T> AsyncFuture<T> asyncRead(ISpaceQuery<T> template)
throws DataAccessException
GigaSpacenull in case there was no match).
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
asyncRead in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.
DataAccessException
public <T> AsyncFuture<T> asyncRead(ISpaceQuery<T> template,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
asyncRead in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.listener - A listener to be notified when a result arrives
DataAccessException
public <T> AsyncFuture<T> asyncRead(ISpaceQuery<T> template,
long timeout)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncRead in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> AsyncFuture<T> asyncRead(ISpaceQuery<T> template,
long timeout,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncRead in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of 0
means to wait no time at all.listener - A listener to be notified when a result arrives
DataAccessException
public <T> AsyncFuture<T> asyncRead(ISpaceQuery<T> template,
long timeout,
int modifiers)
throws DataAccessException
asyncRead in interface GigaSpaceDataAccessException
public <T> AsyncFuture<T> asyncRead(ISpaceQuery<T> template,
long timeout,
ReadModifiers modifiers)
throws DataAccessException
GigaSpacenull in case there was no match).
Overloads GigaSpace.asyncRead(Object,long) by adding a modifiers parameter.
Equivalent when called with the default modifier - ReadModifiers.REPEATABLE_READ.
Modifiers are used to define the behavior of a read operation.
asyncRead in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.modifiers - one or a union of ReadModifiers.
DataAccessException
public <T> AsyncFuture<T> asyncRead(ISpaceQuery<T> template,
long timeout,
int modifiers,
AsyncFutureListener<T> listener)
throws DataAccessException
asyncRead in interface GigaSpaceDataAccessException
public <T> AsyncFuture<T> asyncRead(ISpaceQuery<T> template,
long timeout,
ReadModifiers modifiers,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
Overloads GigaSpace.asyncRead(Object,long) by adding a modifiers parameter.
Equivalent when called with the default modifier - ReadModifiers.REPEATABLE_READ.
Modifiers are used to define the behavior of a read operation.
asyncRead in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.modifiers - one or a union of ReadModifiers.listener - A listener to be notified when a result arrives
DataAccessException
public <T> T readIfExistsById(Class<T> clazz,
Object id)
GigaSpacenull if there is no match.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
Note, if the space is partitioned, and the Entry has a specific property
for its routing value, the operation will broadcast to all partitions. The
GigaSpace.readById(Class, Object, Object) can be used to specify the routing.
readIfExistsById in interface GigaSpaceclazz - The class of the entryid - The id of the entry
null if no matching is found within the timeout value.
public <T> T readIfExistsById(Class<T> clazz,
Object id,
Object routing)
GigaSpacenull if there is no match.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
readIfExistsById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing value
null if no matching is found within the timeout value.
public <T> T readIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout)
GigaSpacenull if there is no match within the specified timeout.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
readIfExistsById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing valuetimeout - The timeout value to wait for a matching entry if it does not exists within the space
null if no matching is found within the timeout value.
public <T> T readIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout,
int modifiers)
readIfExistsById in interface GigaSpace
public <T> T readIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout,
ReadModifiers modifiers)
GigaSpacenull if there is no match within the specified timeout.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
readIfExistsById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing valuetimeout - The timeout value to wait for a matching entry if it does not exists within the spacemodifiers - one or a union of ReadModifiers.
null if no matching is found within the timeout value.
public <T> T readIfExistsById(IdQuery<T> query)
throws DataAccessException
GigaSpacenull if there is no match.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
Note, if the space is partitioned, and the Entry has a specific property
for its routing value, the operation will broadcast to all partitions. The
GigaSpace.readById(Class, Object, Object) can be used to specify the routing.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
readIfExistsById in interface GigaSpacequery - Query to search by.
null if no matching is found within the timeout value.
DataAccessException
public <T> T readIfExistsById(IdQuery<T> query,
long timeout)
throws DataAccessException
GigaSpacenull if there is no match within the specified timeout.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
readIfExistsById in interface GigaSpacequery - Query to search by.timeout - The timeout value to wait for a matching entry if it does not exists within the space
null if no matching is found within the timeout value.
DataAccessException
public <T> T readIfExistsById(IdQuery<T> query,
long timeout,
int modifiers)
throws DataAccessException
readIfExistsById in interface GigaSpaceDataAccessException
public <T> T readIfExistsById(IdQuery<T> query,
long timeout,
ReadModifiers modifiers)
throws DataAccessException
GigaSpacenull if there is no match within the specified timeout.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
readIfExistsById in interface GigaSpacequery - Query to search by.timeout - The timeout value to wait for a matching entry if it does not exists within the spacemodifiers - one or a union of ReadModifiers.
null if no matching is found within the timeout value.
DataAccessException
public <T> T readIfExists(T template)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in
read, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
readIfExists in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").
DataAccessException
public <T> T readIfExists(T template,
long timeout)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in
read, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
readIfExists in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> T readIfExists(T template,
long timeout,
int modifiers)
throws DataAccessException
readIfExists in interface GigaSpaceDataAccessException
public <T> T readIfExists(T template,
long timeout,
ReadModifiers modifiers)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in
read, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
Overloads GigaSpace.read(Object,long) by adding a modifiers parameter.
Equivalent when called with the default modifier - ReadModifiers.REPEATABLE_READ.
Modifiers are used to define the behavior of a read operation.
readIfExists in interface GigaSpacetemplate - The template used for matching. Matching is done against
template with null fields being
wildcards ("match anything") other fields being values ("match
exactly on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.modifiers - one or a union of ReadModifiers.
DataAccessException
public <T> T readIfExists(ISpaceQuery<T> template)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in
read, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
readIfExists in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.
DataAccessException
public <T> T readIfExists(ISpaceQuery<T> template,
long timeout)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in
read, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
readIfExists in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> T readIfExists(ISpaceQuery<T> template,
long timeout,
int modifiers)
throws DataAccessException
readIfExists in interface GigaSpaceDataAccessException
public <T> T readIfExists(ISpaceQuery<T> template,
long timeout,
ReadModifiers modifiers)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in
read, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
Overloads GigaSpace.read(Object,long) by adding a modifiers parameter.
Equivalent when called with the default modifier - ReadModifiers.REPEATABLE_READ.
Modifiers are used to define the behavior of a read operation.
readIfExists in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching object. A timeout of
0 means to wait no time at all.modifiers - one or a union of ReadModifiers.
DataAccessException
public <T> T[] readMultiple(T template)
throws DataAccessException
GigaSpaceread without timeout (0). Returns an
unbounded array of matches. Returns an empty array if no match was found.
Same as calling readMultiple(template, Integer.MAX_VALUE).
readMultiple in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classes
DataAccessException - In the event of a read error, DataAccessException will
wrap a ReadMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] readMultiple(T template,
int maxEntries)
throws DataAccessException
GigaSpaceread without timeout (0). Returns an
array with matches bound by maxEntries. Returns an
empty array if no match was found.
readMultiple in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classesmaxEntries - A limit on the number of entries to be returned. Use
Integer.MAX_VALUE for the uppermost limit.
DataAccessException - In the event of a read error, DataAccessException will
wrap a ReadMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] readMultiple(T template,
int maxEntries,
int modifiers)
throws DataAccessException
readMultiple in interface GigaSpaceDataAccessException
public <T> T[] readMultiple(T template,
int maxEntries,
ReadModifiers modifiers)
throws DataAccessException
GigaSpaceread without timeout (0). Returns an
array with matches bound by maxEntries. Returns an
empty array if no match was found.
Overloads GigaSpace.readMultiple(Object,int) by adding a
modifiers parameter. Equivalent when called with the default
modifier - ReadModifiers.REPEATABLE_READ. Modifiers
are used to define the behavior of a read operation.
readMultiple in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classesmaxEntries - A limit on the number of entries to be returned. Use
Integer.MAX_VALUE for the uppermost limit.modifiers - one or a union of ReadModifiers.
DataAccessException - In the event of a read error, DataAccessException will
wrap a ReadMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] readMultiple(ISpaceQuery<T> template)
throws DataAccessException
GigaSpaceread without timeout (0). Returns an
unbounded array of matches. Returns an
empty array if no match was found.
readMultiple in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.
DataAccessException - In the event of a read error, DataAccessException will
wrap a ReadMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] readMultiple(ISpaceQuery<T> template,
int maxEntries)
throws DataAccessException
GigaSpaceread without timeout (0). Returns an
array with matches bound by maxEntries. Returns an
empty array if no match was found.
readMultiple in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.maxEntries - A limit on the number of entries to be returned. Use
Integer.MAX_VALUE for the uppermost limit.
DataAccessException - In the event of a read error, DataAccessException will
wrap a ReadMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] readMultiple(ISpaceQuery<T> template,
int maxEntries,
int modifiers)
throws DataAccessException
readMultiple in interface GigaSpaceDataAccessException
public <T> T[] readMultiple(ISpaceQuery<T> template,
int maxEntries,
ReadModifiers modifiers)
throws DataAccessException
GigaSpaceread without timeout (0). Returns an
array with matches bound by maxEntries. Returns an
empty array if no match was found.
Overloads GigaSpace.readMultiple(Object,int) by adding a
modifiers parameter. Equivalent when called with the default
modifier - ReadModifiers.REPEATABLE_READ. Modifiers
are used to define the behavior of a read operation.
readMultiple in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.maxEntries - A limit on the number of entries to be returned. Use
Integer.MAX_VALUE for the uppermost limit.modifiers - one or a union of ReadModifiers.
DataAccessException - In the event of a read error, DataAccessException will
wrap a ReadMultipleException, accessible via DataAccessException.getRootCause().
public <T> T takeById(Class<T> clazz,
Object id)
GigaSpacenull if there is no match.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
Note, if the space is partitioned, and the Entry has a specific property
for its routing value, the operation will broadcast to all partitions. The
GigaSpace.takeById(Class, Object, Object) can be used to specify the routing.
takeById in interface GigaSpaceclazz - The class of the entryid - The id of the entry
null if no matching is found within the timeout value.
public <T> T takeById(Class<T> clazz,
Object id,
Object routing)
GigaSpacenull if there is no match.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
takeById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing value
null if no matching is found within the timeout value.
public <T> T takeById(Class<T> clazz,
Object id,
Object routing,
long timeout)
GigaSpacenull if there is no match within the specified timeout.
takeById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing valuetimeout - The timeout value to wait for a matching entry if it does not exists within the space
null if no matching is found within the timeout value.
public <T> T takeById(Class<T> clazz,
Object id,
Object routing,
long timeout,
int modifiers)
takeById in interface GigaSpace
public <T> T takeById(Class<T> clazz,
Object id,
Object routing,
long timeout,
TakeModifiers modifiers)
GigaSpacenull if there is no match within the specified timeout.
takeById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing valuetimeout - The timeout value to wait for a matching entry if it does not exists within the spacemodifiers - one or a union of TakeModifiers.
null if no matching is found within the timeout value.
public <T> T takeById(IdQuery<T> query)
throws DataAccessException
GigaSpacenull if there is no match.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
Note, if the space is partitioned, and the Entry has a specific property
for its routing value, the operation will broadcast to all partitions. The
GigaSpace.readById(Class, Object, Object) can be used to specify the routing.
takeById in interface GigaSpacequery - Query to search by.
null if no matching is found within the timeout value.
DataAccessException
public <T> T takeById(IdQuery<T> query,
long timeout)
throws DataAccessException
GigaSpacenull if there is no match within the specified timeout.
takeById in interface GigaSpacequery - Query to search by.timeout - The timeout value to wait for a matching entry if it does not exists within the space
null if no matching is found within the timeout value.
DataAccessException
public <T> T takeById(IdQuery<T> query,
long timeout,
int modifiers)
throws DataAccessException
takeById in interface GigaSpaceDataAccessException
public <T> T takeById(IdQuery<T> query,
long timeout,
TakeModifiers modifiers)
throws DataAccessException
GigaSpacenull if there is no match within the specified timeout.
takeById in interface GigaSpacequery - Query to search by.timeout - The timeout value to wait for a matching entry if it does not exists within the spacemodifiers - one or a union of TakeModifiers.
null if no matching is found within the timeout value.
DataAccessException
public <T> T take(T template)
throws DataAccessException
GigaSpacenull if the timeout expires.
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
take in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").
DataAccessException
public <T> T take(T template,
long timeout)
throws DataAccessException
GigaSpacenull if the timeout expires.
take in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> T take(T template,
long timeout,
int modifiers)
throws DataAccessException
take in interface GigaSpaceDataAccessException
public <T> T take(T template,
long timeout,
TakeModifiers modifiers)
throws DataAccessException
GigaSpacenull if the timeout expires.
take in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.modifiers - one or a union of TakeModifiers.
DataAccessException
public <T> T take(ISpaceQuery<T> template)
throws DataAccessException
GigaSpacenull if the timeout expires.
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
take in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.
DataAccessException
public <T> T take(ISpaceQuery<T> template,
long timeout)
throws DataAccessException
GigaSpacenull if the timeout expires.
take in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> T take(ISpaceQuery<T> template,
long timeout,
int modifiers)
throws DataAccessException
take in interface GigaSpaceDataAccessException
public <T> T take(ISpaceQuery<T> template,
long timeout,
TakeModifiers modifiers)
throws DataAccessException
GigaSpacenull if the timeout expires.
take in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.modifiers - one or a union of TakeModifiers.
DataAccessException
public <T> AsyncFuture<T> asyncTake(T template)
throws DataAccessException
GigaSpacenull in case there was no match).
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
asyncTake in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").
DataAccessException
public <T> AsyncFuture<T> asyncTake(T template,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
asyncTake in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").listener - A listener to be notified when a result arrives
DataAccessException
public <T> AsyncFuture<T> asyncTake(T template,
long timeout)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncTake in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> AsyncFuture<T> asyncTake(T template,
long timeout,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncTake in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.listener - A listener to be notified when a result arrives
DataAccessException
public <T> AsyncFuture<T> asyncTake(T template,
long timeout,
int modifiers)
throws DataAccessException
asyncTake in interface GigaSpaceDataAccessException
public <T> AsyncFuture<T> asyncTake(T template,
long timeout,
TakeModifiers modifiers)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncTake in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.modifiers - one or a union of TakeModifiers.
DataAccessException
public <T> AsyncFuture<T> asyncTake(T template,
long timeout,
int modifiers,
AsyncFutureListener<T> listener)
throws DataAccessException
asyncTake in interface GigaSpaceDataAccessException
public <T> AsyncFuture<T> asyncTake(T template,
long timeout,
TakeModifiers modifiers,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncTake in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.modifiers - one or a union of TakeModifiers.listener - A listener to be notified when a result arrives
DataAccessException
public <T> AsyncFuture<T> asyncTake(ISpaceQuery<T> template)
throws DataAccessException
GigaSpacenull in case there was no match).
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
asyncTake in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.
DataAccessException
public <T> AsyncFuture<T> asyncTake(ISpaceQuery<T> template,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
asyncTake in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.listener - A listener to be notified when a result arrives.
DataAccessException
public <T> AsyncFuture<T> asyncTake(ISpaceQuery<T> template,
long timeout)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncTake in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> AsyncFuture<T> asyncTake(ISpaceQuery<T> template,
long timeout,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncTake in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.listener - A listener to be notified when a result arrives.
DataAccessException
public <T> AsyncFuture<T> asyncTake(ISpaceQuery<T> template,
long timeout,
int modifiers)
throws DataAccessException
asyncTake in interface GigaSpaceDataAccessException
public <T> AsyncFuture<T> asyncTake(ISpaceQuery<T> template,
long timeout,
TakeModifiers modifiers)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncTake in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.modifiers - one or a union of TakeModifiers.
DataAccessException
public <T> AsyncFuture<T> asyncTake(ISpaceQuery<T> template,
long timeout,
int modifiers,
AsyncFutureListener<T> listener)
throws DataAccessException
asyncTake in interface GigaSpaceDataAccessException
public <T> AsyncFuture<T> asyncTake(ISpaceQuery<T> template,
long timeout,
TakeModifiers modifiers,
AsyncFutureListener<T> listener)
throws DataAccessException
GigaSpacenull in case there was no match).
asyncTake in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.modifiers - one or a union of TakeModifiers.listener - A listener to be notified when a result arrives.
DataAccessException
public <T> T takeIfExistsById(Class<T> clazz,
Object id)
GigaSpacenull if there is no match.
Matching and timeouts are done as in takeById, except that blocking in this
call is done only if necessary to wait for transactional state to settle.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
Note, if the space is partitioned, and the Entry has a specific property
for its routing value, the operation will broadcast to all partitions. The
GigaSpace.takeById(Class, Object, Object) can be used to specify the routing.
takeIfExistsById in interface GigaSpaceclazz - The class of the entryid - The id of the entry
null if no matching is found within the timeout value.
public <T> T takeIfExistsById(Class<T> clazz,
Object id,
Object routing)
GigaSpacenull if there is no match.
Matching and timeouts are done as in takeById, except that blocking in this
call is done only if necessary to wait for transactional state to settle.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
takeIfExistsById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing value
null if no matching is found within the timeout value.
public <T> T takeIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout)
GigaSpacenull if there is no match within the specified timeout.
Matching and timeouts are done as in takeById, except that blocking in this
call is done only if necessary to wait for transactional state to settle.
takeIfExistsById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing valuetimeout - The timeout value to wait for a matching entry if it does not exists within the space
null if no matching is found within the timeout value.
public <T> T takeIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout,
int modifiers)
takeIfExistsById in interface GigaSpace
public <T> T takeIfExistsById(Class<T> clazz,
Object id,
Object routing,
long timeout,
TakeModifiers modifiers)
GigaSpacenull if there is no match within the specified timeout.
Matching and timeouts are done as in takeById, except that blocking in this
call is done only if necessary to wait for transactional state to settle.
takeIfExistsById in interface GigaSpaceclazz - The class of the entryid - The id of the entryrouting - The routing valuetimeout - The timeout value to wait for a matching entry if it does not exists within the spacemodifiers - one or a union of TakeModifiers.
null if no matching is found within the timeout value.
public <T> T takeIfExistsById(IdQuery<T> query)
throws DataAccessException
GigaSpacenull if there is no match.
The timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
Note, if the space is partitioned, and the Entry has a specific property
for its routing value, the operation will broadcast to all partitions. The
GigaSpace.readById(Class, Object, Object) can be used to specify the routing.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
takeIfExistsById in interface GigaSpacequery - Query to search by.
null if no matching is found within the timeout value.
DataAccessException
public <T> T takeIfExistsById(IdQuery<T> query,
long timeout)
throws DataAccessException
GigaSpacenull if there is no match within the specified timeout.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
takeIfExistsById in interface GigaSpacequery - Query to search by.timeout - The timeout value to wait for a matching entry if it does not exists within the space
null if no matching is found within the timeout value.
DataAccessException
public <T> T takeIfExistsById(IdQuery<T> query,
long timeout,
int modifiers)
throws DataAccessException
takeIfExistsById in interface GigaSpaceDataAccessException
public <T> T takeIfExistsById(IdQuery<T> query,
long timeout,
TakeModifiers modifiers)
throws DataAccessException
GigaSpacenull if there is no match within the specified timeout.
Matching and timeouts are done as in
readById, except that blocking in this call is done only if
necessary to wait for transactional state to settle.
takeIfExistsById in interface GigaSpacequery - Query to search by.timeout - The timeout value to wait for a matching entry if it does not exists within the spacemodifiers - one or a union of TakeModifiers.
null if no matching is found within the timeout value.
DataAccessException
public <T> T takeIfExists(T template)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in take,
except that blocking in this call is done only if necessary to wait for transactional
state to settle.
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
takeIfExists in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").
DataAccessException
public <T> T takeIfExists(T template,
long timeout)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in take,
except that blocking in this call is done only if necessary to wait for transactional
state to settle.
takeIfExists in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> T takeIfExists(T template,
long timeout,
int modifiers)
throws DataAccessException
takeIfExists in interface GigaSpaceDataAccessException
public <T> T takeIfExists(T template,
long timeout,
TakeModifiers modifiers)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in take,
except that blocking in this call is done only if necessary to wait for transactional
state to settle.
takeIfExists in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being wildcards (
"match anything") other fields being values ("match exactly
on the serialized form").timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.modifiers - one or a union of TakeModifiers.
DataAccessException
public <T> T takeIfExists(ISpaceQuery<T> template)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in take,
except that blocking in this call is done only if necessary to wait for transactional
state to settle.
Note, the timeout is the default timeout this interface is configured with (using its factory) and defaults to 0.
takeIfExists in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.
DataAccessException
public <T> T takeIfExists(ISpaceQuery<T> template,
long timeout)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in take,
except that blocking in this call is done only if necessary to wait for transactional
state to settle.
takeIfExists in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.
DataAccessException
public <T> T takeIfExists(ISpaceQuery<T> template,
long timeout,
int modifiers)
throws DataAccessException
takeIfExists in interface GigaSpaceDataAccessException
public <T> T takeIfExists(ISpaceQuery<T> template,
long timeout,
TakeModifiers modifiers)
throws DataAccessException
GigaSpacenull if
there currently is none. Matching and timeouts are done as in take,
except that blocking in this call is done only if necessary to wait for transactional
state to settle.
takeIfExists in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.timeout - How long the client is willing to wait for a
transactionally proper matching entry. A timeout of
0 means to wait no time at all.modifiers - one or a union of TakeModifiers.
DataAccessException
public <T> T[] takeMultiple(T template)
throws DataAccessException
GigaSpacetakeMultiple(template, Integer.MAX_VALUE).
takeMultiple in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classes
DataAccessException - In the event of a take error, DataAccessException will
wrap a TakeMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] takeMultiple(T template,
int maxEntries)
throws DataAccessException
GigaSpace
takeMultiple in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classesmaxEntries - A limit on the number of entries to be returned. Use
Integer.MAX_VALUE for the uppermost limit.
DataAccessException - In the event of a take error, DataAccessException will
wrap a TakeMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] takeMultiple(ISpaceQuery<T> template)
throws DataAccessException
GigaSpace
takeMultiple in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.
DataAccessException - In the event of a take error, DataAccessException will
wrap a TakeMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] takeMultiple(ISpaceQuery<T> template,
int maxEntries)
throws DataAccessException
GigaSpace
takeMultiple in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.maxEntries - A limit on the number of entries to be returned. Use
Integer.MAX_VALUE for the uppermost limit.
DataAccessException - In the event of a take error, DataAccessException will
wrap a TakeMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] takeMultiple(T template,
int maxEntries,
int modifiers)
throws DataAccessException
takeMultiple in interface GigaSpaceDataAccessException
public <T> T[] takeMultiple(T template,
int maxEntries,
TakeModifiers modifiers)
throws DataAccessException
GigaSpace
takeMultiple in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classesmaxEntries - A limit on the number of entries to be returned. Use
Integer.MAX_VALUE for the uppermost limit.modifiers - one or a union of TakeModifiers.
DataAccessException - In the event of a take error, DataAccessException will
wrap a TakeMultipleException, accessible via DataAccessException.getRootCause().
public <T> T[] takeMultiple(ISpaceQuery<T> template,
int maxEntries,
int modifiers)
throws DataAccessException
takeMultiple in interface GigaSpaceDataAccessException
public <T> T[] takeMultiple(ISpaceQuery<T> template,
int maxEntries,
TakeModifiers modifiers)
throws DataAccessException
GigaSpace
takeMultiple in interface GigaSpacetemplate - A query to be executed against the space. Most common one is
SQLQuery.maxEntries - A limit on the number of entries to be returned. Use
Integer.MAX_VALUE for the uppermost limit.modifiers - one or a union of TakeModifiers.
DataAccessException - In the event of a take error, DataAccessException will
wrap a TakeMultipleException, accessible via DataAccessException.getRootCause().
public <T> LeaseContext<T> write(T entry)
throws DataAccessException
GigaSpaceLeaseContext.
By default uses the WriteModifiers.UPDATE_OR_WRITE
modifier (see GigaSpace.write(Object,long,long,int). In order to force the operation
to perform "write" only (a bit more performant), the WriteModifiers.WRITE_ONLY
modifier can be used resulting in an EntryAlreadyInSpaceException
if the entry already exists in the space (it must have an id for this exception to be raised).
If the object has a primary key that isn't auto - generated, and the modifiers value is one of
WriteModifiers.UPDATE_OR_WRITE,
WriteModifiers.UPDATE_ONLY or
WriteModifiers.PARTIAL_UPDATE, it will call to the update method,
returning a LeaseContext holder. This lease is unknown to the grantor, unless an actual 'write' was performed.
The entry will be written using the default lease this interface is configured with
(using the its factory). In order to explicitly define the lease, please use
GigaSpace.write(Object,long).
write in interface GigaSpaceentry - The entry to write to the space
Lease on a successful write, or null if performed
with the proxy configured with NoWriteLease flag.
when WriteModifiers.UPDATE_OR_WRITE modifier is applied,
LeaseContext.getObject() returns null on a successful write
or the previous value - on successful update (Only if WriteModifiers.RETURN_PREV_ON_UPDATE is used, otherwise null). UpdateOperationTimeoutException
is thrown if timeout occurred while trying to update the object.
DataAccessException
public <T> LeaseContext<T> write(T entry,
long lease)
throws DataAccessException
GigaSpaceLeaseContext.
By default uses the WriteModifiers.UPDATE_OR_WRITE
modifier (see GigaSpace.write(Object,long,long,int). In order to force the operation
to perform "write" only (a bit more performant), the WriteModifiers.WRITE_ONLY
modifier can be used resulting in an EntryAlreadyInSpaceException
if the entry already exists in the space (it must have an id for this exception to be raised).
If the object has a primary key that isn't auto - generated, and the modifiers value is one of
WriteModifiers.UPDATE_OR_WRITE,
WriteModifiers.UPDATE_ONLY or
WriteModifiers.PARTIAL_UPDATE, it will call to the update method,
returning a LeaseContext holder. This lease is unknown to the grantor, unless an actual 'write' was performed.
write in interface GigaSpaceentry - The entry to write to the spacelease - The lease the entry will be written with, in milliseconds.
Lease on a successful write, or null if performed
with the proxy configured with NoWriteLease flag.
when WriteModifiers.UPDATE_OR_WRITE modifier is applied,
LeaseContext.getObject() returns null on a successful write
or the previous value - on successful update (Only if WriteModifiers.RETURN_PREV_ON_UPDATE is used, otherwise null). UpdateOperationTimeoutException
is thrown if timeout occurred while trying to update the object.
DataAccessException
public <T> LeaseContext<T> write(T entry,
WriteModifiers modifiers)
throws DataAccessException
GigaSpaceLeaseContext.
By default uses the WriteModifiers.UPDATE_OR_WRITE
modifier (see GigaSpace.write(Object,long,long,int). In order to force the operation
to perform "write" only (a bit more performant), the WriteModifiers.WRITE_ONLY
modifier can be used resulting in an EntryAlreadyInSpaceException
if the entry already exists in the space (it must have an id for this exception to be raised).
If the object has a primary key that isn't auto - generated, and the modifiers value is one of
WriteModifiers.UPDATE_OR_WRITE,
WriteModifiers.UPDATE_ONLY or
WriteModifiers.PARTIAL_UPDATE, it will call to the update method,
returning a LeaseContext holder. This lease is unknown to the grantor, unless an actual 'write' was performed.
The entry will be written using the default lease this interface is configured with
(using the its factory). In order to explicitly define the lease, please use
GigaSpace.write(Object,long).
write in interface GigaSpaceentry - The entry to write to the spacemodifiers - one or a union of WriteModifiers.
Lease on a successful write, or null if performed
with the proxy configured with NoWriteLease flag.
when WriteModifiers.UPDATE_OR_WRITE modifier is applied,
LeaseContext.getObject() returns null on a successful write
or the previous value - on successful update (Only if WriteModifiers.RETURN_PREV_ON_UPDATE is used, otherwise null). UpdateOperationTimeoutException
is thrown if timeout occurred while trying to update the object.
DataAccessException
public <T> LeaseContext<T> write(T entry,
long lease,
long timeout,
int modifiers)
throws DataAccessException
write in interface GigaSpaceDataAccessException
public <T> LeaseContext<T> write(T entry,
long lease,
long timeout,
WriteModifiers modifiers)
throws DataAccessException
GigaSpaceLeaseContext.
By default uses the WriteModifiers.UPDATE_OR_WRITE modifier.
In order to force the operation to perform "write" only (a bit more performant), the
WriteModifiers.WRITE_ONLY modifier can be used resulting in an
EntryAlreadyInSpaceException if the entry already exists in the space
(it must have an id for this exception to be raised).
If the object has a primary key that isn't auto - generated, and the modifiers value is one of
WriteModifiers.UPDATE_OR_WRITE,
WriteModifiers.UPDATE_ONLY or
WriteModifiers.PARTIAL_UPDATE, it will call to the update method,
returning a LeaseContext holder. This lease is unknown to the grantor, unless an actual 'write' was performed.
write in interface GigaSpaceentry - The entry to write to the spacelease - The lease the entry will be written with, in milliseconds.timeout - The timeout of an update operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.modifiers - one or a union of WriteModifiers.
Lease on a successful write, or null if performed
with the proxy configured with NoWriteLease flag.
when WriteModifiers.UPDATE_OR_WRITE modifier is applied,
LeaseContext.getObject() returns null on a successful write
or the previous value - on successful update (Only if WriteModifiers.RETURN_PREV_ON_UPDATE is used, otherwise null). UpdateOperationTimeoutException
is thrown if timeout occurred while trying to update the object.
DataAccessException
public <T> ChangeResult<T> change(ISpaceQuery<T> query,
ChangeSet changeSet)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
change in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.
ChangeResult containing the details of the change operation affect.
public <T> ChangeResult<T> change(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
change in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifiers
ChangeResult containing the details of the change operation affect.
public <T> ChangeResult<T> change(ISpaceQuery<T> query,
ChangeSet changeSet,
long timeout)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
change in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.timeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.
ChangeResult containing the details of the change operation affect.
public <T> ChangeResult<T> change(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
change in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifierstimeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.
ChangeResult containing the details of the change operation affect.
public <T> Future<ChangeResult<T>> asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.
public <T> Future<ChangeResult<T>> asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
AsyncFutureListener<ChangeResult<T>> listener)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.listener - A listener to be notified when a result arrives.
public <T> Future<ChangeResult<T>> asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
long timeout)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.timeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.
public <T> Future<ChangeResult<T>> asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
long timeout,
AsyncFutureListener<ChangeResult<T>> listener)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.timeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.listener - A listener to be notified when a result arrives.
public <T> Future<ChangeResult<T>> asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifiers
public <T> Future<ChangeResult<T>> asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers,
AsyncFutureListener<ChangeResult<T>> listener)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifierslistener - A listener to be notified when a result arrives.
public <T> Future<ChangeResult<T>> asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifierstimeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.
public <T> Future<ChangeResult<T>> asyncChange(ISpaceQuery<T> query,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout,
AsyncFutureListener<ChangeResult<T>> listener)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacequery - Query to search by.changeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifierstimeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.listener - A listener to be notified when a result arrives.
public <T> ChangeResult<T> change(T template,
ChangeSet changeSet)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
change in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.
ChangeResult containing the details of the change operation affect.
public <T> ChangeResult<T> change(T template,
ChangeSet changeSet,
ChangeModifiers modifiers)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
change in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifiers
ChangeResult containing the details of the change operation affect.
public <T> ChangeResult<T> change(T template,
ChangeSet changeSet,
long timeout)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
change in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.timeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.
ChangeResult containing the details of the change operation affect.
public <T> ChangeResult<T> change(T template,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
change in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifierstimeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.
ChangeResult containing the details of the change operation affect.
public <T> Future<ChangeResult<T>> asyncChange(T template,
ChangeSet changeSet)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.
public <T> Future<ChangeResult<T>> asyncChange(T template,
ChangeSet changeSet,
AsyncFutureListener<ChangeResult<T>> listener)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.listener - A listener to be notified when a result arrives.
public <T> Future<ChangeResult<T>> asyncChange(T template,
ChangeSet changeSet,
long timeout)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.timeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.
public <T> Future<ChangeResult<T>> asyncChange(T template,
ChangeSet changeSet,
long timeout,
AsyncFutureListener<ChangeResult<T>> listener)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.timeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.listener - A listener to be notified when a result arrives.
public <T> Future<ChangeResult<T>> asyncChange(T template,
ChangeSet changeSet,
ChangeModifiers modifiers)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifiers
public <T> Future<ChangeResult<T>> asyncChange(T template,
ChangeSet changeSet,
ChangeModifiers modifiers,
AsyncFutureListener<ChangeResult<T>> listener)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifierslistener - A listener to be notified when a result arrives.
public <T> Future<ChangeResult<T>> asyncChange(T template,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifierstimeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.
public <T> Future<ChangeResult<T>> asyncChange(T template,
ChangeSet changeSet,
ChangeModifiers modifiers,
long timeout,
AsyncFutureListener<ChangeResult<T>> listener)
GigaSpaceModifiers can be used to specify behavior of the change operation, by default uses the ChangeModifiers.NONE modifier.
asyncChange in interface GigaSpacetemplate - The template used for matching. Matching is done against
the template with null fields being.
wildcards ("match anything") other fields being values ("match
exactly on the serialized form"). The template can also be one
of the different ISpaceQuery classeschangeSet - Changes to apply to the matched entry.modifiers - one or a union of ChangeModifierstimeout - The timeout of the operation, in milliseconds. If the entry is locked by another transaction
wait for the specified number of milliseconds for it to be released.listener - A listener to be notified when a result arrives.
public <T> LeaseContext<T>[] writeMultiple(T[] entries)
throws DataAccessException
GigaSpaceThe entry will be written using the default lease this interface is configured with
(using the its factory). In order to explicitly define the lease, please use
GigaSpace.writeMultiple(Object[],long).
writeMultiple in interface GigaSpaceentries - The entries to write to the space.
DataAccessException - In the event of a write error, DataAccessException will
wrap a WriteMultipleException, accessible via DataAccessException.getRootCause().
public <T> LeaseContext<T>[] writeMultiple(T[] entries,
WriteModifiers modifiers)
throws DataAccessException
GigaSpace
writeMultiple in interface GigaSpaceentries - The entries to write to the space.modifiers - one or a union of WriteModifiers.
DataAccessException - In the event of a write error, DataAccessException will
wrap a WriteMultipleException, accessible via DataAccessException.getRootCause().
public <T> LeaseContext<T>[] writeMultiple(T[] entries,
long lease)
throws DataAccessException
GigaSpace
writeMultiple in interface GigaSpaceentries - The entries to write to the space.lease - The lease the entry will be written with, in milliseconds.
DataAccessException - In the event of a write error, DataAccessException will
wrap a WriteMultipleException, accessible via DataAccessException.getRootCause().
public <T> LeaseContext<T>[] writeMultiple(T[] entries,
long lease,
int updateModifiers)
throws DataAccessException
writeMultiple in interface GigaSpaceDataAccessException
public <T> LeaseContext<T>[] writeMultiple(T[] entries,
long lease,
WriteModifiers modifiers)
throws DataAccessException
GigaSpace'returns' for possible return values.
writeMultiple in interface GigaSpaceentries - the entries to write.lease - the requested lease time, in millisecondsmodifiers - one or a union of WriteModifiers.
Lease on a successful write, or null if performed with NoWriteLease attribute.
when WriteModifiers.UPDATE_OR_WRITE modifier is applied,
LeaseContext.getObject() returns:
WriteModifiers.RETURN_PREV_ON_UPDATE is used, otherwise null)
DataAccessException - In the event of a write error, DataAccessException will
wrap a WriteMultipleException, accessible via DataAccessException.getRootCause().
public <T> LeaseContext<T>[] writeMultiple(T[] entries,
long lease,
long timeout,
WriteModifiers modifiers)
throws DataAccessException
GigaSpace'returns' for possible return values.
writeMultiple in interface GigaSpaceentries - the entries to write.lease - the requested lease time, in millisecondstimeout - The timeout of the update operations, in milliseconds. If entries are locked by another transactionmodifiers - one or a union of WriteModifiers.
Lease on a successful write, or null if performed with NoWriteLease attribute.
when WriteModifiers.UPDATE_OR_WRITE modifier is applied,
LeaseContext.getObject() returns:
WriteModifiers.RETURN_PREV_ON_UPDATE is used, otherwise null)
DataAccessException - In the event of a write error, DataAccessException will
wrap a WriteMultipleException, accessible via DataAccessException.getRootCause().
public <T> LeaseContext<T>[] writeMultiple(T[] entries,
long[] leases,
int updateModifiers)
throws DataAccessException
writeMultiple in interface GigaSpaceDataAccessException
public <T> LeaseContext<T>[] writeMultiple(T[] entries,
long[] leases,
WriteModifiers modifiers)
throws DataAccessException
GigaSpace'returns' for possible return values.
writeMultiple in interface GigaSpaceentries - the entries to write.leases - the requested lease time per entry, in millisecondsmodifiers - one or a union of WriteModifiers.
Lease on a successful write, or null if performed with NoWriteLease attribute.
when WriteModifiers.UPDATE_OR_WRITE modifier is applied,
LeaseContext.getObject() returns:
WriteModifiers.RETURN_PREV_ON_UPDATE is used, otherwise null)
DataAccessException - In the event of a write error, DataAccessException will
wrap a WriteMultipleException, accessible via DataAccessException.getRootCause().
public <T> LeaseContext<T>[] writeMultiple(T[] entries,
long[] leases,
long timeout,
WriteModifiers modifiers)
throws DataAccessException
GigaSpace'returns' for possible return values.
writeMultiple in interface GigaSpaceentries - the entries to write.leases - the requested lease time per entry, in millisecondstimeout - The timeout of the update operations, in milliseconds. If entries are locked by another transactionmodifiers - one or a union of WriteModifiers.
Lease on a successful write, or null if performed with NoWriteLease attribute.
when WriteModifiers.UPDATE_OR_WRITE modifier is applied,
LeaseContext.getObject() returns:
WriteModifiers.RETURN_PREV_ON_UPDATE is used, otherwise null)
DataAccessException - In the event of a write error, DataAccessException will
wrap a WriteMultipleException, accessible via DataAccessException.getRootCause().public IteratorBuilder iterator()
GigaSpaceGSIterator
over the Space.
iterator in interface GigaSpacepublic <T extends Serializable> AsyncFuture<T> execute(Task<T> task)
GigaSpaceSpaceRouting.
In order to control the routing externally, use GigaSpace.execute(org.openspaces.core.executor.Task, Object).
The space that the task is executed within can be accessible by marking a field with type GigaSpace
using the TaskGigaSpace annotation. Another option is by implementing
the TaskGigaSpaceAware interface.
Resource injection can be enabled by marking the task with AutowireTask
or with AutowireTaskMarker. Resources defined within processing unit
(space node) the task is executed on are accessible by using either the Autowired or
javax.annotation.Resource annotations (assuming they are enabled using context:annotation-config).
Bean life cycle methods, such as ClusterInfoAware and
ApplicationContextAware are also available.
execute in interface GigaSpacetask - The task to execute
get() method will return the task value upon completion.
public <T extends Serializable> AsyncFuture<T> execute(Task<T> task,
AsyncFutureListener<T> listener)
GigaSpaceSpaceRouting.
In order to control the routing externally, use GigaSpace.execute(org.openspaces.core.executor.Task, Object).
The space that the task is executed within can be accessible by marking a field with type GigaSpace
using the TaskGigaSpace annotation. Another option is by implementing
the TaskGigaSpaceAware interface.
Resource injection can be enabled by marking the task with AutowireTask
or with AutowireTaskMarker. Resources defined within processing unit
(space node) the task is executed on are accessible by using either the Autowired or
javax.annotation.Resource annotations (assuming they are enabled using context:annotation-config).
Bean life cycle methods, such as ClusterInfoAware and
ApplicationContextAware are also available.
execute in interface GigaSpacetask - The task to executelistener - A listener to be notified when execution completes
get() method will return the task value upon completion.
public <T extends Serializable> AsyncFuture<T> execute(Task<T> task,
Object routing)
GigaSpaceThe routing object itself does not have to be the actual routing value, but can be a POJO
that defined a method annotated with @SpaceRouting annotation (this works well
when wanting to use entries as the routing parameters).
In order to control the using the Task itself, use GigaSpace.execute(org.openspaces.core.executor.Task).
The space that the task is executed within can be accessible by marking a field with type GigaSpace
using the TaskGigaSpace annotation. Another option is by implementing
the TaskGigaSpaceAware interface.
Resource injection can be enabled by marking the task with AutowireTask
or with AutowireTaskMarker. Resources defined within processing unit
(space node) the task is executed on are accessible by using either the Autowired or
javax.annotation.Resource annotations (assuming they are enabled using context:annotation-config).
Bean life cycle methods, such as ClusterInfoAware and
ApplicationContextAware are also available.
execute in interface GigaSpacetask - The task to executerouting - The routing value that will control on which node the task will be executed on
get() method will return the task value upon completion.
public <T extends Serializable> AsyncFuture<T> execute(Task<T> task,
Object routing,
AsyncFutureListener<T> listener)
GigaSpaceThe routing object itself does not have to be the actual routing value, but can be a POJO
that defined a method annotated with @SpaceRouting annotation (this works well
when wanting to use entries as the routing parameters).
In order to control the using the Task itself, use GigaSpace.execute(org.openspaces.core.executor.Task).
The space that the task is executed within can be accessible by marking a field with type GigaSpace
using the TaskGigaSpace annotation. Another option is by implementing
the TaskGigaSpaceAware interface.
Resource injection can be enabled by marking the task with AutowireTask
or with AutowireTaskMarker. Resources defined within processing unit
(space node) the task is executed on are accessible by using either the Autowired or
javax.annotation.Resource annotations (assuming they are enabled using context:annotation-config).
Bean life cycle methods, such as ClusterInfoAware and
ApplicationContextAware are also available.
execute in interface GigaSpacetask - The task to executerouting - The routing value that will control on which node the task will be executed onlistener - A listener to be notified when execution completes
get() method will return the task value upon completion.
public <T extends Serializable,R> AsyncFuture<R> execute(DistributedTask<T,R> task,
Object... routings)
GigaSpaceAsyncResultsReducer.reduce(java.util.List) operation.
The routing object itself does not have to be the actual routing value, but can be a POJO
that defined a method annotated with @SpaceRouting annotation (this works well
when wanting to use entries as the routing parameters).
The task can optionally implement AsyncResultFilter that can control
if tasks should continue to accumulate or it should break and execute the reduce operation on the
results received so far.
The future actual result will be the reduced result of the execution, or the exception thrown during during the reduce operation. The moderator can be used as a mechanism to listen for results as they arrive.
The last parameter can be of type AsyncFutureListener which, this case,
it will be used to register a listener to be notified of the result.
The space that the task is executed within can be accessible by marking a field with type GigaSpace
using the TaskGigaSpace annotation. Another option is by implementing
the TaskGigaSpaceAware interface.
Resource injection can be enabled by marking the task with AutowireTask
or with AutowireTaskMarker. Resources defined within processing unit
(space node) the task is executed on are accessible by using either the Autowired or
javax.annotation.Resource annotations (assuming they are enabled using context:annotation-config).
Bean life cycle methods, such as ClusterInfoAware and
ApplicationContextAware are also available.
execute in interface GigaSpacetask - The task to executeroutings - A list of routing values, each resulting in an execution of the task on the space node
it corresponds to
get() method will return the task value upon completion.public <T extends Serializable,R> AsyncFuture<R> execute(DistributedTask<T,R> task)
GigaSpaceAsyncResultsReducer.reduce(java.util.List) operation.
The task can optionally implement AsyncResultFilter that can control
if tasks should continue to accumulate or it should break and execute the reduce operation on the
results received so far.
The future actual result will be the reduced result of the execution, or the exception thrown during during the reduce operation. The moderator can be used as a mechanism to listen for results as they arrive.
The space that the task is executed within can be accessible by marking a field with type GigaSpace
using the TaskGigaSpace annotation. Another option is by implementing
the TaskGigaSpaceAware interface.
Resource injection can be enabled by marking the task with AutowireTask
or with AutowireTaskMarker. Resources defined within processing unit
(space node) the task is executed on are accessible by using either the Autowired or
javax.annotation.Resource annotations (assuming they are enabled using context:annotation-config).
Bean life cycle methods, such as ClusterInfoAware and
ApplicationContextAware are also available.
execute in interface GigaSpacetask - The task to execute
get() method will return the task value upon completion.
public <T extends Serializable,R> AsyncFuture<R> execute(DistributedTask<T,R> task,
AsyncFutureListener<R> listener)
public <T extends Serializable,R> AsyncFuture<R> distExecute(DistributedTask<T,R> task,
AsyncFutureListener<R> listener)
public <T extends Serializable,R> ExecutorBuilder<T,R> executorBuilder(AsyncResultsReducer<T,R> reducer)
GigaSpaceThe reducer can optionally implement AsyncResultFilter that can control
if tasks should continue to accumulate or it should break and execute the reduce operation on the
results received so far.
The space that the task is executed within can be accessible by marking a field with type GigaSpace
using the TaskGigaSpace annotation. Another option is by implementing
the TaskGigaSpaceAware interface.
Resource injection can be enabled by marking the task with AutowireTask
or with AutowireTaskMarker. Resources defined within processing unit
(space node) the task is executed on are accessible by using either the Autowired or
javax.annotation.Resource annotations (assuming they are enabled using context:annotation-config).
Bean life cycle methods, such as ClusterInfoAware and
ApplicationContextAware are also available.
executorBuilder in interface GigaSpacereducer - The reducer to reduce the results of all the different tasks added.
public Transaction getCurrentTransaction()
GigaSpacenull if no transaction is in progress.
getCurrentTransaction in interface GigaSpacepublic int getModifiersForIsolationLevel()
TransactionDefinition.ISOLATION_DEFAULT will use the
default isolation level associated with this class.
getModifiersForIsolationLevel in interface GigaSpacepublic String toString()
toString in class Object
public <T> AsyncFutureListener<T> wrapListener(AsyncFutureListener<T> listener,
Transaction tx)
public <T> AsyncFuture<T> wrapFuture(AsyncFuture<T> future,
Transaction tx)
wrapFuture in interface org.openspaces.core.internal.InternalGigaSpace
public <T> ReadByIdsResult<T> readByIds(Class<T> clazz,
Object[] ids)
GigaSpaceNote, if the space is partitioned and the Class defines a specific property
for its routing value (which means that the ID property is not used for routing),
the operation will broadcast to all partitions. The GigaSpace.readByIds(Class, Object[], Object) overload
can be used to specify the routing explicitly.
readByIds in interface GigaSpaceclazz - The class.ids - The object IDs array.
public <T> ReadByIdsResult<T> readByIds(Class<T> clazz,
Object[] ids,
int modifiers)
readByIds in interface GigaSpace
public <T> ReadByIdsResult<T> readByIds(Class<T> clazz,
Object[] ids,
Object routing,
int modifiers)
readByIds in interface GigaSpace
public <T> ReadByIdsResult<T> readByIds(Class<T> clazz,
Object[] ids,
Object routing,
ReadModifiers modifiers)
GigaSpaceReadModifiers.
Note, if routing key is null and the cluster is partitioned, the operation will broadcast to all of the partitions.
ReadModifiers.FIFO is not supported by this operation -
the results are always ordered in correlation with the input IDs array.
readByIds in interface GigaSpaceclazz - The class.ids - The object IDs array.routing - The routing of the provided object IDs.modifiers - The read modifier to use (One or several of ReadModifiers).
public <T> ReadByIdsResult<T> readByIds(Class<T> clazz,
Object[] ids,
Object[] routings,
int modifiers)
readByIds in interface GigaSpace
public <T> ReadByIdsResult<T> readByIds(Class<T> clazz,
Object[] ids,
Object[] routings,
ReadModifiers modifiers)
GigaSpaceReadModifiers.
Note, the IDs array and routing keys array are correlated and should be of the same size.
The routing key of ID i in the IDs array is the element at position i in the routing keys array.
If routingKeys is null and the cluster is partitioned, the operation will broadcast to
all of the partitions.
ReadModifiers.FIFO is not supported by this operation -
the results are always ordered in correlation with the input IDs array.
readByIds in interface GigaSpaceclazz - The class type.ids - The objects\ IDs array.routings - The object routing keys array.modifiers - The read modifier to use (One or several of ReadModifiers).
public <T> ReadByIdsResult<T> readByIds(Class<T> clazz,
Object[] ids,
Object routing)
GigaSpaceNote, if routing key is null and the cluster is partitioned, the operation will broadcast to all of the partitions.
readByIds in interface GigaSpaceclazz - The class.ids - The object IDs array.routing - The routing of the provided object IDs.
public <T> ReadByIdsResult<T> readByIds(Class<T> clazz,
Object[] ids,
Object[] routings)
GigaSpaceNote, the IDs array and routing keys array are correlated and should be of the same size.
The routing key of ID i in the IDs array is the element at position i in the routing keys array.
If routingKeys is null and the cluster is partitioned, the operation will broadcast to
all of the partitions.
readByIds in interface GigaSpaceclazz - The class.ids - The object IDs array.routings - The object routing keys array.
public <T> ReadByIdsResult<T> readByIds(IdsQuery<T> query)
throws DataAccessException
GigaSpace
readByIds in interface GigaSpacequery - Query to search by.
DataAccessException
public <T> ReadByIdsResult<T> readByIds(IdsQuery<T> query,
int modifiers)
throws DataAccessException
readByIds in interface GigaSpaceDataAccessException
public <T> ReadByIdsResult<T> readByIds(IdsQuery<T> query,
ReadModifiers modifiers)
throws DataAccessException
GigaSpaceReadModifiers.
readByIds in interface GigaSpacequery - Query to search by.modifiers - The read modifier to use (One or several of ReadModifiers).
DataAccessException
public <T> TakeByIdsResult<T> takeByIds(Class<T> clazz,
Object[] ids,
int modifiers)
takeByIds in interface GigaSpace
public <T> TakeByIdsResult<T> takeByIds(Class<T> clazz,
Object[] ids,
Object routing,
int modifiers)
takeByIds in interface GigaSpace
public <T> TakeByIdsResult<T> takeByIds(Class<T> clazz,
Object[] ids,
Object routing,
TakeModifiers modifiers)
GigaSpaceReadModifiers.
Note, if routing key is null and the cluster is partitioned, the operation will broadcast to all of the partitions.
ReadModifiers.FIFO is not supported by this operation -
the results are always ordered in correlation with the input IDs array.
takeByIds in interface GigaSpaceclazz - The class.ids - The object IDs array.routing - The routing of the provided object IDs.modifiers - The read modifier to use (One or several of ReadModifiers).
public <T> TakeByIdsResult<T> takeByIds(Class<T> clazz,
Object[] ids,
Object[] routings,
int modifiers)
takeByIds in interface GigaSpace
public <T> TakeByIdsResult<T> takeByIds(Class<T> clazz,
Object[] ids,
Object[] routings,
TakeModifiers modifiers)
GigaSpaceReadModifiers.
Note, the IDs array and routing keys array are correlated and should be of the same size.
The routing key of ID i in the IDs array is the element at position i in the routing keys array.
If routingKeys is null and the cluster is partitioned, the operation will broadcast to
all of the partitions.
ReadModifiers.FIFO is not supported by this operation -
the results are always ordered in correlation with the input IDs array.
takeByIds in interface GigaSpaceclazz - The class type.ids - The objects\ IDs array.routings - The object routing keys array.modifiers - The read modifier to use (One or several of ReadModifiers).
public <T> TakeByIdsResult<T> takeByIds(Class<T> clazz,
Object[] ids)
GigaSpaceNote, if the space is partitioned, or the Class defines a specific property
for its routing value (which means that the ID property is not used for routing),
the operation will broadcast to all partitions. The GigaSpace.takeByIds(Class, Object[], Object) overload
can be used to specify the routing explicitly.
takeByIds in interface GigaSpaceclazz - The class.ids - The object IDs array.
public <T> TakeByIdsResult<T> takeByIds(Class<T> clazz,
Object[] ids,
Object routing)
GigaSpaceNote, if routing key is null and the cluster is partitioned, the operation will broadcast to all of the partitions.
takeByIds in interface GigaSpaceclazz - The class.ids - The object IDs array.routing - The routing of the provided object IDs.
public <T> TakeByIdsResult<T> takeByIds(Class<T> clazz,
Object[] ids,
Object[] routings)
GigaSpaceNote, the IDs array and routing keys array are correlated and should be of the same size.
The routing key of ID i in the IDs array is the element at position i in the routing keys array.
If routingKeys is null and the cluster is partitioned, the operation will broadcast to
all of the partitions.
takeByIds in interface GigaSpaceclazz - The class.ids - The object IDs array.routings - The object routing keys array.
public <T> TakeByIdsResult<T> takeByIds(IdsQuery<T> query)
throws DataAccessException
GigaSpace
takeByIds in interface GigaSpacequery - Query to search by.
DataAccessException
public <T> TakeByIdsResult<T> takeByIds(IdsQuery<T> query,
int modifiers)
throws DataAccessException
takeByIds in interface GigaSpaceDataAccessException
public <T> TakeByIdsResult<T> takeByIds(IdsQuery<T> query,
TakeModifiers modifiers)
throws DataAccessException
GigaSpaceReadModifiers.
takeByIds in interface GigaSpacequery - Query to search by.modifiers - The read modifier to use (One or several of ReadModifiers).
DataAccessExceptionpublic DataEventSession newDataEventSession()
GigaSpace
newDataEventSession in interface GigaSpacepublic DataEventSession newDataEventSession(EventSessionConfig config)
GigaSpace
newDataEventSession in interface GigaSpaceconfig - The configuration settings for the new data event session.
public GigaSpaceTypeManager getTypeManager()
GigaSpace
getTypeManager in interface GigaSpaceGigaSpaceTypeManager
|
GigaSpaces XAP 9.7.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||