|
Joram 5.2.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.joram.client.jms.tcp.TcpRequestChannel
public class TcpRequestChannel
A TcpConnection links a Joram client and a Joram platform
with a TCP socket.
Requests and replies travel through the socket after serialization.
| Constructor Summary | |
|---|---|
TcpRequestChannel(FactoryParameters params,
Identity identity)
Creates a TcpConnection instance. |
|
TcpRequestChannel(FactoryParameters params,
Identity identity,
java.lang.String reliableClass)
Creates a TcpConnection instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the TCP connection. |
void |
closing()
|
void |
connect()
|
AbstractJmsReply |
receive()
|
void |
send(AbstractJmsRequest request)
Sending a JMS request through the TCP connection. |
void |
setTimer(java.util.Timer timer)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TcpRequestChannel(FactoryParameters params,
Identity identity)
throws javax.jms.JMSException
TcpConnection instance.
params - Factory parameters.identity -
javax.jms.JMSSecurityException - If the user identification is incorrect.
javax.jms.IllegalStateException - If the server is not reachable.
javax.jms.JMSException
public TcpRequestChannel(FactoryParameters params,
Identity identity,
java.lang.String reliableClass)
throws javax.jms.JMSException
TcpConnection instance.
params - Factory parameters.identity - reliableClass - reliable class name.
javax.jms.JMSSecurityException - If the user identification is incorrect.
javax.jms.IllegalStateException - If the server is not reachable.
javax.jms.JMSException| Method Detail |
|---|
public void setTimer(java.util.Timer timer)
setTimer in interface RequestChannel
public void connect()
throws java.lang.Exception
connect in interface RequestChanneljava.lang.Exception
public void send(AbstractJmsRequest request)
throws java.lang.Exception
send in interface RequestChanneljavax.jms.IllegalStateException - If the connection is broken.
java.lang.Exception
public AbstractJmsReply receive()
throws java.lang.Exception
receive in interface RequestChanneljava.lang.Exceptionpublic void close()
close in interface RequestChannelpublic java.lang.String toString()
toString in class java.lang.Objectpublic void closing()
closing in interface RequestChannel
|
Joram 5.2.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||