spring-framework / org.springframework.jms.core / SessionCallback

SessionCallback

@FunctionalInterface interface SessionCallback<T : Any>

Callback for executing any number of operations on a provided Session.

To be used with the JmsTemplate#execute(SessionCallback) method, often implemented as an anonymous inner class or as a lambda expression.

Author
Mark Pollack

Since
1.1

See Also
JmsTemplate#execute(SessionCallback)

Functions

doInJms

abstract fun doInJms(session: Session): T

Execute any number of operations against the supplied JMS Session, possibly returning a result.