Class SpaceProxy
java.lang.Object
org.jpos.space.SpaceProxy
- All Implemented Interfaces:
Remote, Configurable, RemoteSpace
RMI Space Proxy
- Since:
- 1.4.9
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a proxy backed by the default jPOS space.SpaceProxy(String spaceUri) Constructs a proxy backed by the space resolved fromspaceUri. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the underlying local-space key set when available.inthashCode()in(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.voidConfigures this object with the suppliedConfiguration.voidshutdown()Unexports this proxy from the RMI runtime, retrying once after a brief delay.toString()
-
Constructor Details
-
SpaceProxy
Constructs a proxy backed by the default jPOS space.- Throws:
RemoteException- if RMI export fails
-
SpaceProxy
Constructs a proxy backed by the space resolved fromspaceUri.- Parameters:
spaceUri- SpaceFactory-style space URI- Throws:
RemoteException- if RMI export fails
-
-
Method Details
-
out
Description copied from interface:RemoteSpaceWrite a new entry into the Space- Specified by:
outin interfaceRemoteSpace- Parameters:
key- Entry's keyvalue- Object value- Throws:
RemoteException- if the RMI call fails
-
out
Description copied from interface:RemoteSpaceWrite a new leased entry into the Space. Entry will remain valid for a limited amount of time.- Specified by:
outin interfaceRemoteSpace- Parameters:
key- Entry's keyvalue- Object valuetimeout- entry valid time- Throws:
RemoteException- if the RMI call fails
-
in
Description copied from interface:RemoteSpaceTake an entry from the space, waiting forever until one exists.- Specified by:
inin interfaceRemoteSpace- Parameters:
key- Entry's key- Returns:
- value
- Throws:
RemoteException- if the RMI call fails
-
rd
Description copied from interface:RemoteSpaceRead an entry from the space, waiting forever until one exists.- Specified by:
rdin interfaceRemoteSpace- Parameters:
key- Entry's key- Returns:
- value
- Throws:
RemoteException- if the RMI call fails
-
in
Description copied from interface:RemoteSpaceTake an entry from the space, waiting a limited amount of time until one exists.- Specified by:
inin interfaceRemoteSpace- Parameters:
key- Entry's keytimeout- millis to wait- Returns:
- value or null
- Throws:
RemoteException- if the RMI call fails
-
rd
Description copied from interface:RemoteSpaceRead an entry from the space, waiting a limited amount of time until one exists.- Specified by:
rdin interfaceRemoteSpace- Parameters:
key- Entry's keytimeout- millis to wait- Returns:
- value or null
- Throws:
RemoteException- if the RMI call fails
-
inp
Description copied from interface:RemoteSpaceIn probe takes an entry from the space if one exists, return null otherwise.- Specified by:
inpin interfaceRemoteSpace- Parameters:
key- Entry's key- Returns:
- value or null
- Throws:
RemoteException- if the RMI call fails
-
rdp
Description copied from interface:RemoteSpaceRead probe reads an entry from the space if one exists, return null otherwise.- Specified by:
rdpin interfaceRemoteSpace- Parameters:
key- Entry's key- Returns:
- value or null
- Throws:
RemoteException- if the RMI call fails
-
shutdown
Unexports this proxy from the RMI runtime, retrying once after a brief delay. -
setConfiguration
Description copied from interface:ConfigurableConfigures this object with the suppliedConfiguration.- Specified by:
setConfigurationin interfaceConfigurable- Parameters:
cfg- Configuration object- Throws:
ConfigurationException- if the configuration is invalid
-
getKeySet
-
toString
-
hashCode
-
equals
-