jPOS 1.6.5 API Documentation

org.jpos.space
Class SpaceChannel

java.lang.Object
  extended by org.jpos.space.SpaceChannel
All Implemented Interfaces:
Configurable, ReConfigurable, Channel

public class SpaceChannel
extends java.lang.Object
implements Channel, ReConfigurable

Space based Channel implementation

Version:
$Revision: 2706 $ $Date: 2009-03-05 03:24:43 -0800 (Thu, 05 Mar 2009) $
Author:
Alejandro Revilla
See Also:
Channel

Constructor Summary
SpaceChannel()
           
SpaceChannel(java.lang.String to, java.lang.String from)
           
 
Method Summary
 ISOMsg receive()
          Blocks until a message is received
 ISOMsg receive(long timeout)
          Blocks for a given period of time until a message is received
 void send(ISOMsg m)
           
 void setConfiguration(Configuration cfg)
          reads "to" and "from" properties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceChannel

public SpaceChannel()

SpaceChannel

public SpaceChannel(java.lang.String to,
                    java.lang.String from)
Parameters:
to - output queue
from - input queue
Method Detail

setConfiguration

public void setConfiguration(Configuration cfg)
reads "to" and "from" properties

Specified by:
setConfiguration in interface Configurable
Parameters:
cfg -

send

public void send(ISOMsg m)
Specified by:
send in interface Channel
Parameters:
m - message to send

receive

public ISOMsg receive()
Blocks until a message is received

Specified by:
receive in interface Channel
Returns:
received message

receive

public ISOMsg receive(long timeout)
Blocks for a given period of time until a message is received

Specified by:
receive in interface Channel
Parameters:
timeout - time to wait in millis
Returns:
received message

jPOS.org