public class SolConnectionConsumerRA extends Object implements SolConnectionConsumerIF
| Constructor and Description |
|---|
SolConnectionConsumerRA(SolConnectionIF conn,
SolDestinationInfo destInfo,
String messageSelector,
ServerSessionPool serverPool,
int maxMessages,
JMSState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection consumer.
|
void |
commitBatch(Collection<Message> msgs) |
AckHandler |
getAckHandler() |
ConnectionConsumerTransactionStrategy |
getAckTransaction() |
ServerSessionPool |
getServerSessionPool()
Gets the server session pool associated with this connection consumer.
|
void |
rollbackBatch(Collection<Message> msgs) |
void |
start() |
void |
stop() |
String |
toString() |
public SolConnectionConsumerRA(SolConnectionIF conn, SolDestinationInfo destInfo, String messageSelector, ServerSessionPool serverPool, int maxMessages, JMSState state) throws JMSException
JMSExceptionpublic ServerSessionPool getServerSessionPool() throws JMSException
ConnectionConsumergetServerSessionPool in interface ConnectionConsumerJMSException - if the JMS provider fails to get the server
session pool associated with this consumer due
to some internal error.public void start()
throws JMSException
start in interface SolStartableIFJMSExceptionpublic void stop()
throws JMSException
stop in interface SolStartableIFJMSExceptionpublic void close()
throws JMSException
ConnectionConsumerSince a provider may allocate some resources on behalf of a connection consumer outside the Java virtual machine, clients should close these resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.
close in interface SolCloseableIFclose in interface ConnectionConsumerJMSException - if the JMS provider fails to release resources
on behalf of the connection consumer or fails
to close the connection consumer.public void commitBatch(Collection<Message> msgs) throws JMSException
commitBatch in interface SolConnectionConsumerIFJMSExceptionpublic void rollbackBatch(Collection<Message> msgs) throws JMSException
rollbackBatch in interface SolConnectionConsumerIFJMSExceptionpublic AckHandler getAckHandler()
public ConnectionConsumerTransactionStrategy getAckTransaction()
Copyright 2004-2019 Solace Corporation. All rights reserved.