public class SpaceSource extends java.lang.Object implements ISOSource, SpaceListener<java.lang.String,ISOMsg>, java.io.Serializable
Constructor and Description |
---|
SpaceSource(LocalSpace sp,
ISOSource source,
long timeout) |
Modifier and Type | Method and 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
|
public SpaceSource(LocalSpace sp, ISOSource source, long timeout)
public void init(LocalSpace sp, long timeout)
public void send(ISOMsg m) throws java.io.IOException, ISOException
ISOSource
send
in interface ISOSource
m
- the Message to be sentjava.io.IOException
ISOException
public boolean isConnected()
isConnected
in interface ISOSource
public void notify(java.lang.String key, ISOMsg m)
SpaceListener
Called by Space implementation whenever an object with the given key is being placed in the Space.
notify
in interface SpaceListener<java.lang.String,ISOMsg>
key
- Object's keym
- Object's value