Package org.jpos.space
Class SpaceSource
- java.lang.Object
-
- org.jpos.space.SpaceSource
-
- All Implemented Interfaces:
java.io.Serializable
,ISOSource
,SpaceListener<java.lang.String,ISOMsg>
public class SpaceSource extends java.lang.Object implements ISOSource, SpaceListener<java.lang.String,ISOMsg>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpaceSource(LocalSpace sp, ISOSource source, long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(LocalSpace sp, long timeout)
boolean
isConnected()
void
notify(java.lang.String key, ISOMsg m)
Called by Space implementation whenever an object with the given key is being placed in the Space.void
send(ISOMsg m)
sends (or hands back) an ISOMsg
-
-
-
Constructor Detail
-
SpaceSource
public SpaceSource(LocalSpace sp, ISOSource source, long timeout)
-
-
Method Detail
-
init
public void init(LocalSpace sp, long timeout)
-
send
public void send(ISOMsg m) throws java.io.IOException, ISOException
Description copied from interface:ISOSource
sends (or hands back) an ISOMsg- Specified by:
send
in interfaceISOSource
- Parameters:
m
- the Message to be sent- Throws:
java.io.IOException
ISOException
-
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interfaceISOSource
- Returns:
- true if source is connected and usable
-
notify
public void notify(java.lang.String key, ISOMsg m)
Description copied from interface:SpaceListener
Called by Space implementation whenever an object with the given key is being placed in the Space.
- Specified by:
notify
in interfaceSpaceListener<java.lang.String,ISOMsg>
- Parameters:
key
- Object's keym
- Object's value
-
-