|
jPOS 1.6.1 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpos.util.SimpleLogSource
org.jpos.space.SpaceMUX
public class SpaceMUX
Space based MUX implementation
MUX| Constructor Summary | |
|---|---|
SpaceMUX()
|
|
SpaceMUX(java.lang.String to,
java.lang.String from,
java.lang.String unhandled)
|
|
| Method Summary | |
|---|---|
static MUX |
getMUX(java.lang.String name)
|
java.lang.String |
getName()
|
boolean |
isConnected()
|
void |
notify(java.lang.Object k,
java.lang.Object value)
Called by Space implementation whenever an object with the given key is being placed in the Space. |
ISOMsg |
request(ISOMsg m,
long timeout)
|
void |
request(ISOMsg m,
long timeout,
ISOResponseListener r,
java.lang.Object handBack)
|
void |
setConfiguration(Configuration cfg)
reads "to", "from" and optional "unhandled" properties |
void |
setName(java.lang.String name)
associates this MUX with a name using NameRegistrar |
| Methods inherited from class org.jpos.util.SimpleLogSource |
|---|
error, error, getLogger, getRealm, info, info, setLogger, setRealm, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpaceMUX()
public SpaceMUX(java.lang.String to,
java.lang.String from,
java.lang.String unhandled)
to - output queuefrom - input queueunhandled - optional unhandled queue (may be null)| Method Detail |
|---|
public void setConfiguration(Configuration cfg)
throws ConfigurationException
setConfiguration in interface Configurablecfg -
ConfigurationException
public ISOMsg request(ISOMsg m,
long timeout)
throws ISOException
request in interface MUXm - message to sendtimeout - amount of time in millis to wait for a response
ISOException
public void notify(java.lang.Object k,
java.lang.Object value)
SpaceListenerCalled by Space implementation whenever an object with the given key is being placed in the Space.
notify in interface SpaceListenerk - Object's keyvalue - Object's valuepublic void setName(java.lang.String name)
name - name to registerNameRegistrarpublic java.lang.String getName()
public static MUX getMUX(java.lang.String name)
throws NameRegistrar.NotFoundException
NameRegistrar.NotFoundException;
NameRegistrar.NotFoundExceptionNameRegistrarpublic boolean isConnected()
isConnected in interface MUX
public void request(ISOMsg m,
long timeout,
ISOResponseListener r,
java.lang.Object handBack)
throws ISOException
request in interface MUXISOException
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||