Interface RemoteSpace
- All Superinterfaces:
Remote
- All Known Implementing Classes:
SpaceProxy
-
Method Summary
Modifier and TypeMethodDescriptionin(Serializable key) Take an entry from the space, waiting forever until one exists.in(Serializable key, long timeout) Take an entry from the space, waiting a limited amount of time until one exists.inp(Serializable key) In probe takes an entry from the space if one exists, return null otherwise.voidout(Serializable key, Serializable value) Write a new entry into the Spacevoidout(Serializable key, Serializable value, long timeout) Write a new leased entry into the Space.rd(Serializable key) Read an entry from the space, waiting forever until one exists.rd(Serializable key, long timeout) Read an entry from the space, waiting a limited amount of time until one exists.rdp(Serializable key) Read probe reads an entry from the space if one exists, return null otherwise.
-
Method Details
-
out
Write a new entry into the Space- Parameters:
key- Entry's keyvalue- Object value- Throws:
RemoteException
-
out
Write a new leased entry into the Space. Entry will remain valid for a limited amount of time.- Parameters:
key- Entry's keyvalue- Object valuetimeout- entry valid time- Throws:
RemoteException
-
in
Take an entry from the space, waiting forever until one exists.- Parameters:
key- Entry's key- Returns:
- value
- Throws:
RemoteException
-
rd
Read an entry from the space, waiting forever until one exists.- Parameters:
key- Entry's key- Returns:
- value
- Throws:
RemoteException
-
in
Take an entry from the space, waiting a limited amount of time until one exists.- Parameters:
key- Entry's keytimeout- millis to wait- Returns:
- value or null
- Throws:
RemoteException
-
rd
Read an entry from the space, waiting a limited amount of time until one exists.- Parameters:
key- Entry's keytimeout- millis to wait- Returns:
- value or null
- Throws:
RemoteException
-
inp
In probe takes an entry from the space if one exists, return null otherwise.- Parameters:
key- Entry's key- Returns:
- value or null
- Throws:
RemoteException
-
rdp
Read probe reads an entry from the space if one exists, return null otherwise.- Parameters:
key- Entry's key- Returns:
- value or null
- Throws:
RemoteException
-