Class SessionContext
- java.lang.Object
-
- org.objectweb.joram.tools.rest.jms.SessionContext
-
- Direct Known Subclasses:
ConsumerContext,ProducerContext
public abstract class SessionContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private RestClientContextclientCtxprivate jakarta.jms.Destinationdestprivate jakarta.jms.JMSContextjmsContextprotected longlastId
-
Constructor Summary
Constructors Constructor Description SessionContext(RestClientContext clientCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestClientContextgetClientCtx()jakarta.jms.DestinationgetDest()jakarta.jms.JMSContextgetJmsContext()Returns the JMS context (session) for this specific client (producer or consumer).longgetLastId()longincLastId()voidsetDest(jakarta.jms.Destination dest)voidsetJmsContext(jakarta.jms.JMSContext jmsContext)voidsetLastId(long lastId)StringtoString()longviewLastId()
-
-
-
Field Detail
-
clientCtx
private RestClientContext clientCtx
-
jmsContext
private jakarta.jms.JMSContext jmsContext
-
dest
private jakarta.jms.Destination dest
-
lastId
protected long lastId
-
-
Constructor Detail
-
SessionContext
public SessionContext(RestClientContext clientCtx)
-
-
Method Detail
-
setDest
public void setDest(jakarta.jms.Destination dest)
-
getDest
public jakarta.jms.Destination getDest()
-
viewLastId
public final long viewLastId()
-
getLastId
public long getLastId()
-
incLastId
public long incLastId()
-
setLastId
public void setLastId(long lastId)
-
getJmsContext
public jakarta.jms.JMSContext getJmsContext()
Returns the JMS context (session) for this specific client (producer or consumer).- Returns:
- the jmsContext
-
setJmsContext
public void setJmsContext(jakarta.jms.JMSContext jmsContext)
- Parameters:
jmsContext- the jmsContext to set
-
getClientCtx
public RestClientContext getClientCtx()
- Returns:
- the clientCtx
-
-