T
- the result type@FunctionalInterface
public interface BrowserCallback<T>
To be used with JmsTemplate
's callback methods that take a
BrowserCallback
argument, often implemented as an anonymous
inner class or as a lambda expression.
JmsTemplate.browse(BrowserCallback)
,
JmsTemplate.browseSelected(String, BrowserCallback)
Modifier and Type | Method and Description |
---|---|
T |
doInJms(Session session,
QueueBrowser browser)
Perform operations on the given
Session and
QueueBrowser . |
@Nullable T doInJms(Session session, QueueBrowser browser) throws JMSException
Session
and
QueueBrowser
.session
- the JMS Session
object to usebrowser
- the JMS QueueBrowser
object to useSession
, if any
(or null
if none)JMSException
- if thrown by JMS API methods