T
- the result type@FunctionalInterface
public interface SessionCallback<T>
Session
.
To be used with the JmsTemplate.execute(SessionCallback)
method,
often implemented as an anonymous inner class or as a lambda expression.
JmsTemplate.execute(SessionCallback)
Modifier and Type | Method and Description |
---|---|
T |
doInJms(Session session)
Execute any number of operations against the supplied JMS
Session ,
possibly returning a result. |
@Nullable T doInJms(Session session) throws JMSException
Session
,
possibly returning a result.session
- the JMS Session
Session
, if any
(or null
if none)JMSException
- if thrown by JMS API methods