Class RestClientContext
- java.lang.Object
-
- org.objectweb.joram.tools.rest.jms.RestClientContext
-
public final class RestClientContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private jakarta.jms.ConnectionFactorycfprivate StringclientIdprivate longidleTimeoutprivate jakarta.jms.JMSContextjmsContextprivate longlastActivityprivate List<String>sessionCtxNames
-
Constructor Summary
Constructors Constructor Description RestClientContext(String clientId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddSessionCtxNames(String ctxName)StringgetClientId()jakarta.jms.ConnectionFactorygetConnectionFactory()longgetIdleTimeout()jakarta.jms.JMSContextgetJmsContext()longgetLastActivity()List<String>getSessionCtxNames()booleanisSessionCtxNamesEmpty()booleanremoveSessionCtxNames(String ctxName)voidsetConnectionFactory(jakarta.jms.ConnectionFactory cf)voidsetIdleTimeout(long idleTimeout)voidsetJmsContext(jakarta.jms.JMSContext jmsContext)voidsetLastActivity(long activityTime)StringtoString()
-
-
-
Constructor Detail
-
RestClientContext
public RestClientContext(String clientId)
-
-
Method Detail
-
getConnectionFactory
public jakarta.jms.ConnectionFactory getConnectionFactory()
- Returns:
- the cf
-
setConnectionFactory
public void setConnectionFactory(jakarta.jms.ConnectionFactory cf)
- Parameters:
cf- the cf to set
-
getJmsContext
public jakarta.jms.JMSContext getJmsContext()
- Returns:
- the jmsContext
-
setJmsContext
public void setJmsContext(jakarta.jms.JMSContext jmsContext)
- Parameters:
jmsContext- the jmsContext to set
-
getClientId
public String getClientId()
- Returns:
- the clientId
-
addSessionCtxNames
public boolean addSessionCtxNames(String ctxName)
-
removeSessionCtxNames
public boolean removeSessionCtxNames(String ctxName)
-
isSessionCtxNamesEmpty
public boolean isSessionCtxNamesEmpty()
- Returns:
- true if this list contains no elements.
-
setLastActivity
public void setLastActivity(long activityTime)
- Parameters:
activityTime- the last activity time to set
-
getLastActivity
public long getLastActivity()
- Returns:
- the last activity time
-
getIdleTimeout
public long getIdleTimeout()
- Returns:
- the idleTimeout
-
setIdleTimeout
public void setIdleTimeout(long idleTimeout)
- Parameters:
idleTimeout- the idleTimeout to set in second
-
-