Package org.objectweb.joram.mom.proxies
Class StandardConnectionContext
- java.lang.Object
-
- org.objectweb.joram.mom.proxies.StandardConnectionContext
-
- All Implemented Interfaces:
Serializable,ConnectionContext
public class StandardConnectionContext extends Object implements ConnectionContext, Serializable
Standard implementation of the interface to abstract the communication between the client and the MOM.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.objectweb.joram.mom.proxies.ConnectionContext
ConnectionContext.Type
-
-
Field Summary
Fields Modifier and Type Field Description private booleanclosedprivate intkeyprivate Queuequeueprivate static longserialVersionUIDDefine serialVersionUID for interoperability.
-
Constructor Summary
Constructors Constructor Description StandardConnectionContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetKey()QueuegetQueue()AbstractJmsRequestgetRequest(Object req)voidinitialize(int key, OpenConnectionNot not)booleanisClosed()voidpushError(MomException exc)voidpushReply(AbstractJmsReply reply)voidsend(Object obj)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Define serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
key
private int key
-
queue
private Queue queue
-
closed
private boolean closed
-
-
Method Detail
-
getKey
public int getKey()
- Specified by:
getKeyin interfaceConnectionContext
-
send
public void send(Object obj)
-
getQueue
public Queue getQueue()
-
pushReply
public void pushReply(AbstractJmsReply reply)
- Specified by:
pushReplyin interfaceConnectionContext
-
getRequest
public AbstractJmsRequest getRequest(Object req)
- Specified by:
getRequestin interfaceConnectionContext
-
pushError
public void pushError(MomException exc)
- Specified by:
pushErrorin interfaceConnectionContext
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceConnectionContext
-
initialize
public void initialize(int key, OpenConnectionNot not)- Specified by:
initializein interfaceConnectionContext
-
-