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, wait
close, createNewOperationID, getContextTransaction, getNotificationsDirectProxy, getPrivilegedAdmin, initWriteModifiers, isClustered, loadRemoteClass, replaceContextTransaction, replaceContextTransaction
getAdmin, getCacheTypeName, getDirectProxy, getFinderURL, getName, getReadModifiers, getReferentUuid, getUpdateModifiers, getURL, isEmbedded, isFifo, isOptimisticLockingEnabled, isSecured, isStartedWithinGSC, setFifo, setOptimisticLocking, setReadModifiers, setUpdateModifiers
setActionListener
isServiceSecured, login
protected abstract AbstractSpaceProxyActionManager<?> createActionManager()
public String getContainerName()
getContainerName
in interface IJSpace
public Lease write(Entry entry, Transaction txn, long lease) throws TransactionException, RemoteException
JavaSpace
IPojoSpace.write(Object, Transaction, long, long,
int)
with UpdateModifiers.WRITE_ONLY
.write
in interface JavaSpace
entry
- 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
JavaSpace
null
if the timeout expires.read
in interface JavaSpace
template
- 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
JavaSpace
null
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 JavaSpace
template
- 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
JavaSpace
read
.take
in interface JavaSpace
template
- 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
JavaSpace
null
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 JavaSpace
template
- 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
JavaSpace
listener
with
a RemoteEvent
that includes the handback
object. Matching is done
as for read
.notify
in interface JavaSpace
template
- 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)
,
EventRegistration
public Entry snapshot(Entry e) throws RemoteException
JavaSpace
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 JavaSpace
e
- the entry to take a snapshot of.RemoteException
- if a communication error occurspublic ITypeDesc getTypeDescriptor(String typeName) throws RemoteException
getTypeDescriptor
in interface ISpaceProxy
RemoteException
public void registerTypeDescriptor(ITypeDesc typeDesc) throws RemoteException
registerTypeDescriptor
in interface ISpaceProxy
RemoteException
public ITypeDesc registerTypeDescriptor(Class<?> type) throws RemoteException
registerTypeDescriptor
in interface ISpaceProxy
RemoteException
public AsyncFuture<AddTypeIndexesResult> asyncAddIndexes(String typeName, SpaceIndex[] indexes, AsyncFutureListener<AddTypeIndexesResult> listener) throws RemoteException
asyncAddIndexes
in interface ISpaceProxy
RemoteException
public void dropClass(String className) throws RemoteException, DropClassException
IJSpace
dropClass
in interface IJSpace
className
- 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 ISpaceProxy
RemoteException
public void clear(Object template, Transaction txn) throws RemoteException, TransactionException, UnusableEntryException
clear
in interface IPojoSpace
RemoteException
TransactionException
UnusableEntryException
public int clear(Object template, Transaction txn, int modifiers) throws RemoteException, TransactionException, UnusableEntryException
clear
in interface IPojoSpace
RemoteException
TransactionException
UnusableEntryException
public int count(Object template, Transaction txn) throws RemoteException, TransactionException, UnusableEntryException
count
in interface IPojoSpace
RemoteException
TransactionException
UnusableEntryException
public int count(Object template, Transaction txn, int modifiers) throws RemoteException, TransactionException, UnusableEntryException
count
in interface IPojoSpace
RemoteException
TransactionException
UnusableEntryException
public AsyncFuture execute(SpaceTask task, Object routing, Transaction tx, AsyncFutureListener listener) throws TransactionException, RemoteException
ISpaceProxy
execute
in interface ISpaceProxy
task
- 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
IJSpace
ping
in interface IJSpace
RemoteException
- when space was unreachablepublic SpaceHealthStatus getSpaceHealthStatus() throws RemoteException
ISpaceProxy
getSpaceHealthStatus
in interface ISpaceProxy
RemoteException
public Object read(Object template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
read
in interface IPojoSpace
UnusableEntryException
TransactionException
InterruptedException
RemoteException
public Object read(Object template, Transaction txn, long timeout, int modifiers) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
read
in interface IPojoSpace
UnusableEntryException
TransactionException
InterruptedException
RemoteException
public Object read(Object template, Transaction txn, long timeout, int modifiers, boolean ifExists) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
read
in interface ISpaceProxy
UnusableEntryException
TransactionException
InterruptedException
RemoteException
public AsyncFuture<?> asyncRead(Object template, Transaction txn, long timeout, int modifiers, AsyncFutureListener listener) throws RemoteException
ISpaceProxy
asyncRead
in interface ISpaceProxy
template
- 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.RemoteException
public 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 ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public Object readById(ReadTakeProxyActionInfo actionInfo) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
readById
in interface ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public Object takeById(ReadTakeProxyActionInfo actionInfo) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
takeById
in interface ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public Object readByUid(String uid, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPacket) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
readByUid
in interface ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public Object readIfExists(Object template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
readIfExists
in interface IPojoSpace
UnusableEntryException
TransactionException
InterruptedException
RemoteException
public Object readIfExists(Object template, Transaction txn, long timeout, int modifiers) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
readIfExists
in interface IPojoSpace
UnusableEntryException
TransactionException
InterruptedException
RemoteException
public Object[] readMultiple(Object template, Transaction txn, int maxEntries) throws TransactionException, UnusableEntryException, RemoteException
readMultiple
in interface IPojoSpace
TransactionException
UnusableEntryException
RemoteException
public Object[] readMultiple(Object template, Transaction txn, int maxEntries, int modifiers) throws TransactionException, UnusableEntryException, RemoteException
readMultiple
in interface IPojoSpace
TransactionException
UnusableEntryException
RemoteException
public Object[] readMultiple(Object template, Transaction txn, int maxEntries, int modifiers, boolean returnOnlyUids) throws TransactionException, UnusableEntryException, RemoteException
readMultiple
in interface ISpaceProxy
TransactionException
UnusableEntryException
RemoteException
public 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 ISpaceProxy
TransactionException
UnusableEntryException
RemoteException
public <T> ISpaceQuery<T> snapshot(Object template) throws RemoteException
snapshot
in interface IPojoSpace
RemoteException
public Object take(Object template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
take
in interface IPojoSpace
UnusableEntryException
TransactionException
InterruptedException
RemoteException
public Object take(Object template, Transaction txn, long timeout, int modifiers) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
take
in interface IPojoSpace
UnusableEntryException
TransactionException
InterruptedException
RemoteException
public Object take(Object template, Transaction txn, long timeout, int modifiers, boolean ifExists) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
take
in interface ISpaceProxy
UnusableEntryException
TransactionException
InterruptedException
RemoteException
public AsyncFuture<?> asyncTake(Object template, Transaction txn, long timeout, int modifiers, AsyncFutureListener listener) throws RemoteException
ISpaceProxy
asyncTake
in interface ISpaceProxy
template
- 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.RemoteException
public 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 ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public Object takeByUid(String uid, Transaction txn, int modifiers, QueryResultTypeInternal resultType, boolean returnPacket) throws RemoteException, UnusableEntryException, TransactionException, InterruptedException
takeByUid
in interface ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public Object takeIfExists(Object template, Transaction txn, long timeout) throws UnusableEntryException, TransactionException, InterruptedException, RemoteException
takeIfExists
in interface IPojoSpace
UnusableEntryException
TransactionException
InterruptedException
RemoteException
public 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 IPojoSpace
TransactionException
UnusableEntryException
RemoteException
public Object[] takeMultiple(Object template, Transaction txn, int maxEntries, int modifiers) throws TransactionException, UnusableEntryException, RemoteException
takeMultiple
in interface IPojoSpace
TransactionException
UnusableEntryException
RemoteException
public Object[] takeMultiple(Object template, Transaction txn, int maxEntries, int modifiers, boolean returnOnlyUids) throws TransactionException, UnusableEntryException, RemoteException
takeMultiple
in interface ISpaceProxy
TransactionException
UnusableEntryException
RemoteException
public 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 ISpaceProxy
TransactionException
UnusableEntryException
RemoteException
public Object update(Object updatedEntry, Transaction transaction, long lease, long timeout) throws TransactionException, UnusableEntryException, RemoteException, InterruptedException
update
in interface IPojoSpace
TransactionException
UnusableEntryException
RemoteException
InterruptedException
public Object update(Object entry, Transaction txn, long lease, long timeout, int modifiers) throws TransactionException, UnusableEntryException, RemoteException, InterruptedException
update
in interface IPojoSpace
TransactionException
UnusableEntryException
RemoteException
InterruptedException
public Object[] updateMultiple(Object[] entries, Transaction txn, long[] leases) throws UnusableEntryException, TransactionException, RemoteException
updateMultiple
in interface IPojoSpace
UnusableEntryException
TransactionException
RemoteException
public Object[] updateMultiple(Object[] entries, Transaction txn, long[] leases, int modifiers) throws UnusableEntryException, TransactionException, RemoteException
updateMultiple
in interface IPojoSpace
UnusableEntryException
TransactionException
RemoteException
public LeaseContext<?> write(Object entry, Transaction txn, long lease) throws TransactionException, RemoteException
write
in interface IPojoSpace
TransactionException
RemoteException
public LeaseContext<?> write(Object entry, Transaction txn, long lease, long timeout, int modifiers) throws TransactionException, RemoteException
write
in interface IPojoSpace
TransactionException
RemoteException
public LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long lease) throws TransactionException, RemoteException
writeMultiple
in interface IPojoSpace
TransactionException
RemoteException
public LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long lease, int modifiers) throws TransactionException, RemoteException
writeMultiple
in interface IPojoSpace
TransactionException
RemoteException
public LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long[] leases, int modifiers) throws TransactionException, RemoteException
writeMultiple
in interface IPojoSpace
TransactionException
RemoteException
public LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long lease, long[] leases, int modifiers) throws TransactionException, RemoteException
TransactionException
RemoteException
public LeaseContext<?>[] writeMultiple(Object[] objects, Transaction txn, long lease, long[] leases, long timeout, int modifiers) throws TransactionException, RemoteException
writeMultiple
in interface ISpaceProxy
TransactionException
RemoteException
public 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 ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public 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 ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public Object[] readByIds(ReadTakeByIdsProxyActionInfo actionInfo, boolean returnPackets) throws RemoteException, TransactionException, InterruptedException, UnusableEntryException
readByIds
in interface ISpaceProxy
RemoteException
TransactionException
InterruptedException
UnusableEntryException
public 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 ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public 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 ISpaceProxy
RemoteException
UnusableEntryException
TransactionException
InterruptedException
public Object[] takeByIds(ReadTakeByIdsProxyActionInfo actionInfo, boolean returnPackets) throws RemoteException, TransactionException, InterruptedException, UnusableEntryException
takeByIds
in interface ISpaceProxy
RemoteException
TransactionException
InterruptedException
UnusableEntryException
public ReadTakeEntriesUidsResult readEntriesUids(ITemplatePacket template, Transaction transaction, int entriesLimit, int modifiers) throws RemoteException, TransactionException, UnusableEntryException
ISpaceProxy
readEntriesUids
in interface ISpaceProxy
RemoteException
TransactionException
UnusableEntryException
public <T> ChangeResult<T> change(Object template, ChangeSet changeSet, Transaction txn, long timeout, ChangeModifiers modifiers) throws RemoteException, TransactionException
ISpaceProxy
change
in interface ISpaceProxy
RemoteException
TransactionException
public <T> Future<ChangeResult<T>> asyncChange(Object template, ChangeSet changeSet, Transaction txn, long timeout, ChangeModifiers modifiers, AsyncFutureListener<ChangeResult<T>> listener) throws RemoteException
asyncChange
in interface ISpaceProxy
RemoteException
public AggregationResult aggregate(Object template, AggregationSet aggregationSet, Transaction txn, int readModifiers) throws RemoteException, TransactionException, InterruptedException
aggregate
in interface ISpaceProxy
RemoteException
TransactionException
InterruptedException
public void setAppDomainId(int appDomainId)
IDotnetProxyAssociated
setAppDomainId
in interface IDotnetProxyAssociated
public boolean hasAssociatedAppDomain()
hasAssociatedAppDomain
in interface IDotnetProxyAssociated
public int getAppDomainId()
getAppDomainId
in interface IDotnetProxyAssociated
IDotnetProxyAssociated.hasAssociatedAppDomain()
public void setDotnetProxyHandleId(long handleId)
IDotnetProxyAssociated
setDotnetProxyHandleId
in interface IDotnetProxyAssociated
handleId
- handle id of the proxypublic boolean isTargetOfADotnetProxy()
isTargetOfADotnetProxy
in interface IDotnetProxyAssociated
public long getDotnetProxyHandleId()
getDotnetProxyHandleId
in interface IDotnetProxyAssociated
public void applyNotifyInfoDefaults(NotifyInfo notifyInfo)
applyNotifyInfoDefaults
in interface ISpaceProxy
public boolean checkIfConnected()
checkIfConnected
in interface ISpaceProxy
public boolean isCacheContainer()
public IDirectSpaceProxy getLocalSpace()
public IDirectSpaceProxy getRemoteSpace()
public boolean isLocalCacheCacheContainer()
public boolean isLocalViewContainer()
Copyright © GigaSpaces.