public class JmsMatsInternalExecutionContext
extends java.lang.Object
JmsMatsJmsSessionHandler
and JmsMatsTransactionManager
.Modifier and Type | Method and Description |
---|---|
long |
getDbCommitNanos() |
JmsMatsJmsSessionHandler.JmsSessionHolder |
getJmsSessionHolder() |
java.util.Optional<javax.jms.MessageConsumer> |
getMessageConsumer() |
long |
getMessageSystemCommitNanos() |
boolean |
isUserLambdaExceptionLogged() |
void |
setDbCommitNanos(long dbCommitNanos) |
void |
setMessageSystemCommitNanos(long messageSystemCommitNanos) |
void |
setSqlTxConnectionSuppliers(java.util.function.Supplier<java.sql.Connection> sqlConnectionSupplier,
java.util.function.Supplier<java.lang.Boolean> sqlConnectionEmployedSupplier)
If the current
JmsMatsTransactionManager is managing a SQL Connection, then it SHALL set a way to get the
current transactional SQL Connection, and a way to determine whether the SQL Connection was actually employed (if
this is not possible to determine, then return whether it was gotten). |
void |
setUserLambdaExceptionLogged() |
public JmsMatsJmsSessionHandler.JmsSessionHolder getJmsSessionHolder()
public java.util.Optional<javax.jms.MessageConsumer> getMessageConsumer()
MessageConsumer
in effect if this is within a JmsMatsStageProcessor
, returns
Optional.empty() if this is within a JmsMatsInitiator
.public void setSqlTxConnectionSuppliers(java.util.function.Supplier<java.sql.Connection> sqlConnectionSupplier, java.util.function.Supplier<java.lang.Boolean> sqlConnectionEmployedSupplier)
JmsMatsTransactionManager
is managing a SQL Connection, then it SHALL set a way to get the
current transactional SQL Connection, and a way to determine whether the SQL Connection was actually employed (if
this is not possible to determine, then return whether it was gotten).sqlConnectionSupplier
- a supplier for the current transactional SQL ConnectionsqlConnectionEmployedSupplier
- a supplier for whether the SQL Connection was actually employed (if this is not possible to determine,
then return whether it was gotten).public void setUserLambdaExceptionLogged()
public boolean isUserLambdaExceptionLogged()
public void setDbCommitNanos(long dbCommitNanos)
public long getDbCommitNanos()
public void setMessageSystemCommitNanos(long messageSystemCommitNanos)
public long getMessageSystemCommitNanos()