Java org.springframework.jms.connection JmsResourceHolder fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.jms.connection JmsResourceHolder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.jms.connection JmsResourceHolder.

The text is from its open source code.

Constructor

JmsResourceHolder(@Nullable ConnectionFactory connectionFactory)
Create a new JmsResourceHolder that is open for resources to be added.
JmsResourceHolder(Session session)
Create a new JmsResourceHolder for the given JMS Session.

Method

voidaddConnection(Connection connection)
Add the given Connection to this resource holder.
voidaddSession(Session session, @Nullable Connection connection)
Add the given Session to this resource holder, registered for a specific Connection.
booleancontainsSession(Session session)
Determine whether the given Session is registered with this resource holder.
ConnectiongetConnection()
Return this resource holder's default Connection, or null if none.
CgetConnection(Class connectionType)
Return this resource holder's Connection of the given type, or null if none.
SessiongetSession()
Return this resource holder's default Session, or null if none.
SgetSession(Class sessionType, @Nullable Connection connection)
Return this resource holder's Session of the given type for the given connection, or null if none.
longgetTimeToLiveInMillis()
Return the time to live for this object in milliseconds.
booleanhasTimeout()
Return whether this object has an associated timeout.
booleanisFrozen()
Return whether this resource holder is frozen, i.e.
voidsetSynchronizedWithTransaction(boolean synchronizedWithTransaction)
Mark the resource as synchronized with a transaction.