public abstract class AbstractSpaceProxy extends Object implements ISpaceProxy
AbstractSpaceProxyActionManager. Extended classes
should initialize the listeners in the action manager.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSpaceProxy() |
| Modifier and Type | Method and Description |
|---|---|
AggregationResult |
aggregate(Object template,
AggregationSet aggregationSet,
Transaction txn,
int readModifiers) |
void |
applyNotifyInfoDefaults(NotifyInfo notifyInfo) |
AsyncFuture<AddTypeIndexesResult> |
asyncAddIndexes(String typeName,
SpaceIndex[] indexes,
AsyncFutureListener<AddTypeIndexesResult> listener) |
<T> Future<ChangeResult<T>> |
asyncChange(Object template,
ChangeSet changeSet,
Transaction txn,
long timeout,
ChangeModifiers modifiers,
AsyncFutureListener<ChangeResult<T>> listener) |
AsyncFuture<?> |
asyncRead(Object template,
Transaction txn,
long timeout,
int modifiers,
AsyncFutureListener listener)
Internal methods only.
|
AsyncFuture<?> |
asyncTake(Object template,
Transaction txn,
long timeout,
int modifiers,
AsyncFutureListener listener)
Internal methods only.
|
<T> ChangeResult<T> |
change(Object template,
ChangeSet changeSet,
Transaction txn,
long timeout,
ChangeModifiers modifiers)
Change entry in space
|
boolean |
checkIfConnected() |
void |
clear(Object template,
Transaction txn) |
int |
clear(Object template,
Transaction txn,
int modifiers) |
int |
count(Object template,
Transaction txn) |
int |
count(Object template,
Transaction txn,
int modifiers) |
protected abstract AbstractSpaceProxyActionManager<?> |
createActionManager() |
void |
dropClass(String className)
Drops all Class's entries and all its templates from this Space instance.
|
AsyncFuture |
execute(SpaceTask task,
Object routing,
Transaction tx,
AsyncFutureListener listener)
Executes a task on a single space.
|
int |
getAppDomainId() |
String |
getContainerName() |
long |
getDotnetProxyHandleId() |
IDirectSpaceProxy |
getLocalSpace() |
IDirectSpaceProxy |
getRemoteSpace() |
SpaceHealthStatus |
getSpaceHealthStatus()
Gets an object representing the space health status
|
ITypeDesc |
getTypeDescriptor(String typeName) |
boolean |
hasAssociatedAppDomain() |
boolean |
isCacheContainer() |
boolean |
isLocalCacheCacheContainer() |
boolean |
isLocalViewContainer() |
boolean |
isTargetOfADotnetProxy() |
EventRegistration |
notify(Entry template,
Transaction txn,
RemoteEventListener listener,
long lease,
MarshalledObject handback)
When entries are written that match this template notify the given
listener with
a RemoteEvent that includes the handback object. |
void |
ping()
Checks whether the space is alive and accessible.
|
Entry |
read(Entry template,
Transaction txn,
long timeout)
Read any matching entry from the space, blocking until one exists.
|
Object |
read(Object template,
Transaction txn,
long timeout) |
Object |
read(Object template,
Transaction txn,
long timeout,
int modifiers) |
Object |
read(Object template,
Transaction txn,
long timeout,
int modifiers,
boolean ifExists) |
Object |
readById(ReadTakeProxyActionInfo actionInfo) |
Object |
readById(String className,
Object id,
Object routing,
Transaction txn,
long timeout,
int modifiers,
boolean ifExists,
QueryResultTypeInternal resultType,
String[] projections) |
Object[] |
readByIds(ReadTakeByIdsProxyActionInfo actionInfo,
boolean returnPackets) |
Object[] |
readByIds(String className,
Object[] ids,
Object[] routings,
Transaction txn,
int modifiers,
QueryResultTypeInternal resultType,
boolean returnPackets,
String[] projections) |
Object[] |
readByIds(String className,
Object[] ids,
Object routing,
Transaction txn,
int modifiers,
QueryResultTypeInternal resultType,
boolean returnPackets,
String[] projections) |
Object |
readByUid(String uid,
Transaction txn,
int modifiers,
QueryResultTypeInternal resultType,
boolean returnPacket) |
ReadTakeEntriesUidsResult |
readEntriesUids(ITemplatePacket template,
Transaction transaction,
int entriesLimit,
int modifiers)
Read entries UIDs from space.
|
Entry |
readIfExists(Entry template,
Transaction txn,
long timeout)
Read any matching entry from the space, returning
null if there is currently is
none. |
Object |
readIfExists(Object template,
Transaction txn,
long timeout) |
Object |
readIfExists(Object template,
Transaction txn,
long timeout,
int modifiers) |
Object[] |
readMultiple(Object template,
Transaction txn,
int maxEntries) |
Object[] |
readMultiple(Object template,
Transaction txn,
int maxEntries,
int modifiers) |
Object[] |
readMultiple(Object template,
Transaction txn,
int maxEntries,
int modifiers,
boolean returnOnlyUids) |
Object[] |
readMultiple(Object template,
Transaction txn,
long timeout,
int maxEntries,
int minEntriesToWaitFor,
int modifiers,
boolean returnOnlyUids,
boolean ifExist) |
ITypeDesc |
registerTypeDescriptor(Class<?> type) |
void |
registerTypeDescriptor(ITypeDesc typeDesc) |
void |
setAppDomainId(int appDomainId)
associate this object to the specified AppDomain id
|
void |
setDotnetProxyHandleId(long handleId)
Sets a dotnet proxy handle id
|
Entry |
snapshot(Entry e)
The process of serializing an entry for transmission to a JavaSpaces service will be
identical if the same entry is used twice.
|
<T> ISpaceQuery<T> |
snapshot(Object template) |
Entry |
take(Entry template,
Transaction txn,
long timeout)
Take a matching entry from the space, waiting until one exists.
|
Object |
take(Object template,
Transaction txn,
long timeout) |
Object |
take(Object template,
Transaction txn,
long timeout,
int modifiers) |
Object |
take(Object template,
Transaction txn,
long timeout,
int modifiers,
boolean ifExists) |
Object |
takeById(ReadTakeProxyActionInfo actionInfo) |
Object |
takeById(String className,
Object id,
Object routing,
int version,
Transaction txn,
long timeout,
int modifiers,
boolean ifExists,
QueryResultTypeInternal resultType,
String[] projections) |
Object[] |
takeByIds(ReadTakeByIdsProxyActionInfo actionInfo,
boolean returnPackets) |
Object[] |
takeByIds(String className,
Object[] ids,
Object[] routings,
Transaction txn,
int modifiers,
QueryResultTypeInternal resultType,
boolean returnPackets,
String[] projections) |
Object[] |
takeByIds(String className,
Object[] ids,
Object routing,
Transaction txn,
int modifiers,
QueryResultTypeInternal resultType,
boolean returnPackets,
String[] projections) |
Object |
takeByUid(String uid,
Transaction txn,
int modifiers,
QueryResultTypeInternal resultType,
boolean returnPacket) |
Entry |
takeIfExists(Entry template,
Transaction txn,
long timeout)
Take a matching entry from the space, returning
null if there is currently is
none. |
Object |
takeIfExists(Object template,
Transaction txn,
long timeout) |
Object |
takeIfExists(Object template,
Transaction txn,
long timeout,
int modifiers) |
Object[] |
takeMultiple(Object template,
Transaction txn,
int maxEntries) |
Object[] |
takeMultiple(Object template,
Transaction txn,
int maxEntries,
int modifiers) |
Object[] |
takeMultiple(Object template,
Transaction txn,
int maxEntries,
int modifiers,
boolean returnOnlyUids) |
Object[] |
takeMultiple(Object template,
Transaction txn,
long timeout,
int maxEntries,
int minEntriesToWaitFor,
int modifiers,
boolean returnOnlyUids,
boolean ifExist) |
void |
unregisterTypeDescriptor(String typeName) |
Object |
update(Object updatedEntry,
Transaction transaction,
long lease,
long timeout) |
Object |
update(Object entry,
Transaction txn,
long lease,
long timeout,
int modifiers) |
Object[] |
updateMultiple(Object[] entries,
Transaction txn,
long[] leases) |
Object[] |
updateMultiple(Object[] entries,
Transaction txn,
long[] leases,
int modifiers) |
Lease |
write(Entry entry,
Transaction txn,
long lease)
Write a new entry into the space.
|
LeaseContext<?> |
write(Object entry,
Transaction txn,
long lease) |
LeaseContext<?> |
write(Object entry,
Transaction txn,
long lease,
long timeout,
int modifiers) |
LeaseContext<?>[] |
writeMultiple(Object[] objects,
Transaction txn,
long lease) |
LeaseContext<?>[] |
writeMultiple(Object[] objects,
Transaction txn,
long[] leases,
int modifiers) |
LeaseContext<?>[] |
writeMultiple(Object[] objects,
Transaction txn,
long lease,
int modifiers) |
LeaseContext<?>[] |
writeMultiple(Object[] objects,
Transaction txn,
long lease,
long[] leases,
int modifiers) |
LeaseContext<?>[] |
writeMultiple(Object[] objects,
Transaction txn,
long lease,
long[] leases,
long timeout,
int modifiers) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, createNewOperationID, getContextTransaction, getNotificationsDirectProxy, getPrivilegedAdmin, initWriteModifiers, isClustered, loadRemoteClass, replaceContextTransaction, replaceContextTransactiongetAdmin, getCacheTypeName, getDirectProxy, getFinderURL, getName, getReadModifiers, getReferentUuid, getUpdateModifiers, getURL, isEmbedded, isFifo, isOptimisticLockingEnabled, isSecured, isStartedWithinGSC, setFifo, setOptimisticLocking, setReadModifiers, setUpdateModifierssetActionListenerisServiceSecured, loginprotected abstract AbstractSpaceProxyActionManager<?> createActionManager()
public String getContainerName()
getContainerName in interface IJSpacepublic Lease write(Entry entry, Transaction txn, long lease) throws TransactionException, RemoteException
JavaSpaceIPojoSpace.write(Object, Transaction, long, long,
int) with UpdateModifiers.WRITE_ONLY.write in interface JavaSpaceentry - the entry to writetxn - the transaction object, if any, under which to perform the writelease - the requested lease time, in millisecondsTransactionException - if a transaction error occursRemoteException - if a communication error occurspublic Entry read(Entry template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
JavaSpacenull
if the timeout expires.read in interface JavaSpacetemplate - The template used for matching. Matching is done against tmpl
with null fields being wildcards ("match anything") other fields
being values ("match exactly on the serialized form").txn - The transaction (if any) under which to work.timeout - How long the client is willing to wait for a transactionally proper matching
entry. A timeout of NO_WAIT means to wait no time at all; this
is equivalent to a wait of zero.UnusableEntryException - if any serialized field of the entry being read cannot be
deserialized for any reasonTransactionException - if a transaction error occursInterruptedException - if the thread in which the read occurs is interruptedRemoteException - if a communication error occurspublic Entry readIfExists(Entry template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
JavaSpacenull if there is 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 JavaSpacetemplate - The template used for matching. Matching is done against tmpl
with null fields being wildcards ("match anything") other fields
being values ("match exactly on the serialized form").txn - The transaction (if any) under which to work.timeout - How long the client is willing to wait for a transactionally proper matching
entry. A timeout of NO_WAIT means to wait no time at all; this
is equivalent to a wait of zero.UnusableEntryException - if any serialized field of the entry being read cannot be
deserialized for any reasonTransactionException - if a transaction error occursInterruptedException - if the thread in which the read occurs is interruptedRemoteException - if a communication error occursJavaSpace.read(net.jini.core.entry.Entry, net.jini.core.transaction.Transaction, long)public Entry take(Entry template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
JavaSpaceread.take in interface JavaSpacetemplate - The template used for matching. Matching is done against tmpl
with null fields being wildcards ("match anything") other fields
being values ("match exactly on the serialized form").txn - The transaction (if any) under which to work.timeout - How long the client is willing to wait for a transactionally proper matching
entry. A timeout of NO_WAIT means to wait no time at all; this
is equivalent to a wait of zero.UnusableEntryException - if any serialized field of the entry being read cannot be
deserialized for any reasonTransactionException - if a transaction error occursInterruptedException - if the thread in which the take occurs is interruptedRemoteException - if a communication error occursJavaSpace.read(net.jini.core.entry.Entry, net.jini.core.transaction.Transaction, long)public Entry takeIfExists(Entry template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
JavaSpacenull if there is currently is
none. Matching is and timeout done as for read, except that blocking in this
call is done only if necessary to wait for transactional state to settle.takeIfExists in interface JavaSpacetemplate - The template used for matching. Matching is done against tmpl
with null fields being wildcards ("match anything") other fields
being values ("match exactly on the serialized form").txn - The transaction (if any) under which to work.timeout - How long the client is willing to wait for a transactionally proper matching
entry. A timeout of NO_WAIT means to wait no time at all; this
is equivalent to a wait of zero.UnusableEntryException - if any serialized field of the entry being read cannot be
deserialized for any reasonTransactionException - if a transaction error occursInterruptedException - if the thread in which the take occurs is interruptedRemoteException - if a communication error occursJavaSpace.read(net.jini.core.entry.Entry, net.jini.core.transaction.Transaction, long)public EventRegistration notify(Entry template, Transaction txn, RemoteEventListener listener, long lease, MarshalledObject handback) throws TransactionException, RemoteException
JavaSpacelistener with
a RemoteEvent that includes the handback object. Matching is done
as for read.notify in interface JavaSpacetemplate - The template used for matching. Matching is done against tmpl
with null fields being wildcards ("match anything") other fields
being values ("match exactly on the serialized form").txn - The transaction (if any) under which to work.listener - The remote event listener to notify.lease - the requested lease time, in millisecondshandback - An object to send to the listener as part of the event notification.TransactionException - if a transaction error occursRemoteException - if a communication error occursJavaSpace.read(net.jini.core.entry.Entry, net.jini.core.transaction.Transaction, long),
EventRegistrationpublic Entry snapshot(Entry e) throws RemoteException
JavaSpaceread 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 JavaSpacee - the entry to take a snapshot of.RemoteException - if a communication error occurspublic ITypeDesc getTypeDescriptor(String typeName) throws RemoteException
getTypeDescriptor in interface ISpaceProxyRemoteExceptionpublic void registerTypeDescriptor(ITypeDesc typeDesc) throws RemoteException
registerTypeDescriptor in interface ISpaceProxyRemoteExceptionpublic ITypeDesc registerTypeDescriptor(Class<?> type) throws RemoteException
registerTypeDescriptor in interface ISpaceProxyRemoteExceptionpublic AsyncFuture<AddTypeIndexesResult> asyncAddIndexes(String typeName, SpaceIndex[] indexes, AsyncFutureListener<AddTypeIndexesResult> listener) throws RemoteException
asyncAddIndexes in interface ISpaceProxyRemoteExceptionpublic void dropClass(String className) throws RemoteException, DropClassException
IJSpacedropClass in interface IJSpaceclassName - name of class to delete.RemoteException - if a communication error occursDropClassException - Failed to drop desired class.IPojoSpace.clear(Object, Transaction)public void unregisterTypeDescriptor(String typeName) throws RemoteException
unregisterTypeDescriptor in interface ISpaceProxyRemoteExceptionpublic void clear(Object template, Transaction txn) throws RemoteException, TransactionException, UnusableEntryException
clear in interface IPojoSpaceRemoteExceptionTransactionExceptionUnusableEntryExceptionpublic int clear(Object template, Transaction txn, int modifiers) throws RemoteException, TransactionException, UnusableEntryException
clear in interface IPojoSpaceRemoteExceptionTransactionExceptionUnusableEntryExceptionpublic int count(Object template, Transaction txn) throws RemoteException, TransactionException, UnusableEntryException
count in interface IPojoSpaceRemoteExceptionTransactionExceptionUnusableEntryExceptionpublic int count(Object template, Transaction txn, int modifiers) throws RemoteException, TransactionException, UnusableEntryException
count in interface IPojoSpaceRemoteExceptionTransactionExceptionUnusableEntryExceptionpublic AsyncFuture execute(SpaceTask task, Object routing, Transaction tx, AsyncFutureListener listener) throws TransactionException, RemoteException
ISpaceProxyexecute in interface ISpaceProxytask - task (non-null) to execute on single space, according to the routing field.tx - transaction (if any) under which to work.listener - event listener to execute result.TransactionException - if a transaction error occursRemoteException - if a communication error occurspublic void ping()
throws RemoteException
IJSpaceping in interface IJSpaceRemoteException - when space was unreachablepublic SpaceHealthStatus getSpaceHealthStatus() throws RemoteException
ISpaceProxygetSpaceHealthStatus in interface ISpaceProxyRemoteExceptionpublic Object read(Object template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
read in interface IPojoSpaceUnusableEntryExceptionTransactionExceptionInterruptedExceptionRemoteExceptionpublic Object read(Object template, Transaction txn, long timeout, int modifiers) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
read in interface IPojoSpaceUnusableEntryExceptionTransactionExceptionInterruptedExceptionRemoteExceptionpublic Object read(Object template, Transaction txn, long timeout, int modifiers, boolean ifExists) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
read in interface ISpaceProxyUnusableEntryExceptionTransactionExceptionInterruptedExceptionRemoteExceptionpublic AsyncFuture<?> asyncRead(Object template, Transaction txn, long timeout, int modifiers, AsyncFutureListener listener) throws RemoteException
ISpaceProxyasyncRead in interface ISpaceProxytemplate - 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").txn - 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 entry. A timeout of NO_WAIT means to wait no time at all; this is
equivalent to a wait of zero.modifiers - one or a union of ReadModifiers.listener - event listener to execute result.RemoteExceptionpublic Object readById(String className, Object id, Object routing, Transaction txn, long timeout, int modifiers, boolean ifExists, QueryResultTypeInternal resultType, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
readById in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object readById(ReadTakeProxyActionInfo actionInfo) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
readById in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object takeById(ReadTakeProxyActionInfo actionInfo) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
takeById in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object readByUid(String uid, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPacket) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
readByUid in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object readIfExists(Object template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
readIfExists in interface IPojoSpaceUnusableEntryExceptionTransactionExceptionInterruptedExceptionRemoteExceptionpublic Object readIfExists(Object template, Transaction txn, long timeout, int modifiers) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
readIfExists in interface IPojoSpaceUnusableEntryExceptionTransactionExceptionInterruptedExceptionRemoteExceptionpublic Object[] readMultiple(Object template, Transaction txn, int maxEntries) throws TransactionException, UnusableEntryException, RemoteException
readMultiple in interface IPojoSpaceTransactionExceptionUnusableEntryExceptionRemoteExceptionpublic Object[] readMultiple(Object template, Transaction txn, int maxEntries, int modifiers) throws TransactionException, UnusableEntryException, RemoteException
readMultiple in interface IPojoSpaceTransactionExceptionUnusableEntryExceptionRemoteExceptionpublic Object[] readMultiple(Object template, Transaction txn, int maxEntries, int modifiers, boolean returnOnlyUids) throws TransactionException, UnusableEntryException, RemoteException
readMultiple in interface ISpaceProxyTransactionExceptionUnusableEntryExceptionRemoteExceptionpublic Object[] readMultiple(Object template, Transaction txn, long timeout, int maxEntries, int minEntriesToWaitFor, int modifiers, boolean returnOnlyUids, boolean ifExist) throws TransactionException, UnusableEntryException, RemoteException
readMultiple in interface ISpaceProxyTransactionExceptionUnusableEntryExceptionRemoteExceptionpublic <T> ISpaceQuery<T> snapshot(Object template) throws RemoteException
snapshot in interface IPojoSpaceRemoteExceptionpublic Object take(Object template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
take in interface IPojoSpaceUnusableEntryExceptionTransactionExceptionInterruptedExceptionRemoteExceptionpublic Object take(Object template, Transaction txn, long timeout, int modifiers) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
take in interface IPojoSpaceUnusableEntryExceptionTransactionExceptionInterruptedExceptionRemoteExceptionpublic Object take(Object template, Transaction txn, long timeout, int modifiers, boolean ifExists) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
take in interface ISpaceProxyUnusableEntryExceptionTransactionExceptionInterruptedExceptionRemoteExceptionpublic AsyncFuture<?> asyncTake(Object template, Transaction txn, long timeout, int modifiers, AsyncFutureListener listener) throws RemoteException
ISpaceProxyasyncTake in interface ISpaceProxytemplate - 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").txn - 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 entry. A timeout of NO_WAIT means to wait no time at all; this is
equivalent to a wait of zero.modifiers - one or a union of ReadModifiers.listener - event listener to execute result.RemoteExceptionpublic Object takeById(String className, Object id, Object routing, int version, Transaction txn, long timeout, int modifiers, boolean ifExists, QueryResultTypeInternal resultType, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
takeById in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object takeByUid(String uid, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPacket) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
takeByUid in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object takeIfExists(Object template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
takeIfExists in interface IPojoSpaceUnusableEntryExceptionTransactionExceptionInterruptedExceptionRemoteExceptionpublic Object takeIfExists(Object template, Transaction txn, long timeout, int modifiers) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
public Object[] takeMultiple(Object template, Transaction txn, int maxEntries) throws TransactionException, UnusableEntryException, RemoteException
takeMultiple in interface IPojoSpaceTransactionExceptionUnusableEntryExceptionRemoteExceptionpublic Object[] takeMultiple(Object template, Transaction txn, int maxEntries, int modifiers) throws TransactionException, UnusableEntryException, RemoteException
takeMultiple in interface IPojoSpaceTransactionExceptionUnusableEntryExceptionRemoteExceptionpublic Object[] takeMultiple(Object template, Transaction txn, int maxEntries, int modifiers, boolean returnOnlyUids) throws TransactionException, UnusableEntryException, RemoteException
takeMultiple in interface ISpaceProxyTransactionExceptionUnusableEntryExceptionRemoteExceptionpublic Object[] takeMultiple(Object template, Transaction txn, long timeout, int maxEntries, int minEntriesToWaitFor, int modifiers, boolean returnOnlyUids, boolean ifExist) throws TransactionException, UnusableEntryException, RemoteException
takeMultiple in interface ISpaceProxyTransactionExceptionUnusableEntryExceptionRemoteExceptionpublic Object update(Object updatedEntry, Transaction transaction, long lease, long timeout) throws TransactionException, UnusableEntryException, RemoteException, InterruptedException
update in interface IPojoSpaceTransactionExceptionUnusableEntryExceptionRemoteExceptionInterruptedExceptionpublic Object update(Object entry, Transaction txn, long lease, long timeout, int modifiers) throws TransactionException, UnusableEntryException, RemoteException, InterruptedException
update in interface IPojoSpaceTransactionExceptionUnusableEntryExceptionRemoteExceptionInterruptedExceptionpublic Object[] updateMultiple(Object[] entries, Transaction txn, long[] leases) throws UnusableEntryException, TransactionException, RemoteException
updateMultiple in interface IPojoSpaceUnusableEntryExceptionTransactionExceptionRemoteExceptionpublic Object[] updateMultiple(Object[] entries, Transaction txn, long[] leases, int modifiers) throws UnusableEntryException, TransactionException, RemoteException
updateMultiple in interface IPojoSpaceUnusableEntryExceptionTransactionExceptionRemoteExceptionpublic LeaseContext<?> write(Object entry, Transaction txn, long lease) throws TransactionException, RemoteException
write in interface IPojoSpaceTransactionExceptionRemoteExceptionpublic LeaseContext<?> write(Object entry, Transaction txn, long lease, long timeout, int modifiers) throws TransactionException, RemoteException
write in interface IPojoSpaceTransactionExceptionRemoteExceptionpublic LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long lease) throws TransactionException, RemoteException
writeMultiple in interface IPojoSpaceTransactionExceptionRemoteExceptionpublic LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long lease, int modifiers) throws TransactionException, RemoteException
writeMultiple in interface IPojoSpaceTransactionExceptionRemoteExceptionpublic LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long[] leases, int modifiers) throws TransactionException, RemoteException
writeMultiple in interface IPojoSpaceTransactionExceptionRemoteExceptionpublic LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long lease, long[] leases, int modifiers) throws TransactionException, RemoteException
TransactionExceptionRemoteExceptionpublic LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long lease, long[] leases, long timeout, int modifiers) throws TransactionException, RemoteException
writeMultiple in interface ISpaceProxyTransactionExceptionRemoteExceptionpublic Object[] readByIds(String className, Object[] ids, Object routing, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
readByIds in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object[] readByIds(String className, Object[] ids, Object[] routings, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
readByIds in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object[] readByIds(ReadTakeByIdsProxyActionInfo actionInfo, boolean returnPackets) throws RemoteException, TransactionException, InterruptedException, UnusableEntryException
readByIds in interface ISpaceProxyRemoteExceptionTransactionExceptionInterruptedExceptionUnusableEntryExceptionpublic Object[] takeByIds(String className, Object[] ids, Object routing, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
takeByIds in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object[] takeByIds(String className, Object[] ids, Object[] routings, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPackets, String[] projections) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
takeByIds in interface ISpaceProxyRemoteExceptionUnusableEntryExceptionTransactionExceptionInterruptedExceptionpublic Object[] takeByIds(ReadTakeByIdsProxyActionInfo actionInfo, boolean returnPackets) throws RemoteException, TransactionException, InterruptedException, UnusableEntryException
takeByIds in interface ISpaceProxyRemoteExceptionTransactionExceptionInterruptedExceptionUnusableEntryExceptionpublic ReadTakeEntriesUidsResult readEntriesUids(ITemplatePacket template, Transaction transaction, int entriesLimit, int modifiers) throws RemoteException, TransactionException, UnusableEntryException
ISpaceProxyreadEntriesUids in interface ISpaceProxyRemoteExceptionTransactionExceptionUnusableEntryExceptionpublic <T> ChangeResult<T> change(Object template, ChangeSet changeSet, Transaction txn, long timeout, ChangeModifiers modifiers) throws RemoteException, TransactionException
ISpaceProxychange in interface ISpaceProxyRemoteExceptionTransactionExceptionpublic <T> Future<ChangeResult<T>> asyncChange(Object template, ChangeSet changeSet, Transaction txn, long timeout, ChangeModifiers modifiers, AsyncFutureListener<ChangeResult<T>> listener) throws RemoteException
asyncChange in interface ISpaceProxyRemoteExceptionpublic AggregationResult aggregate(Object template, AggregationSet aggregationSet, Transaction txn, int readModifiers) throws RemoteException, TransactionException, InterruptedException
aggregate in interface ISpaceProxyRemoteExceptionTransactionExceptionInterruptedExceptionpublic void setAppDomainId(int appDomainId)
IDotnetProxyAssociatedsetAppDomainId in interface IDotnetProxyAssociatedpublic boolean hasAssociatedAppDomain()
hasAssociatedAppDomain in interface IDotnetProxyAssociatedpublic int getAppDomainId()
getAppDomainId in interface IDotnetProxyAssociatedIDotnetProxyAssociated.hasAssociatedAppDomain()public void setDotnetProxyHandleId(long handleId)
IDotnetProxyAssociatedsetDotnetProxyHandleId in interface IDotnetProxyAssociatedhandleId - handle id of the proxypublic boolean isTargetOfADotnetProxy()
isTargetOfADotnetProxy in interface IDotnetProxyAssociatedpublic long getDotnetProxyHandleId()
getDotnetProxyHandleId in interface IDotnetProxyAssociatedpublic void applyNotifyInfoDefaults(NotifyInfo notifyInfo)
applyNotifyInfoDefaults in interface ISpaceProxypublic boolean checkIfConnected()
checkIfConnected in interface ISpaceProxypublic boolean isCacheContainer()
public IDirectSpaceProxy getLocalSpace()
public IDirectSpaceProxy getRemoteSpace()
public boolean isLocalCacheCacheContainer()
public boolean isLocalViewContainer()
Copyright © GigaSpaces.