class FlowTransactionStream extends JmsStreamSupport
Consume transaction events from JMS and produce appropiate logging entries.
Other parties produce FlowTransactionEvents and send them to JMS wrapped within a FlowEnvelope. The transformation between transaction events and envelopes is encapsulated in the companion object of FlowTransactionEvent.
When a transaction event is received in it's envelope, the following steps will be executed:
1) forward the envelope unmodified to a JMS topic. This is an optional step that only applies if the internalCf parameter is not None. 2) decode the inbound envelope back into a transaction event 3) use the underlying FlowTransactionManager to update the containers persistent store of known transactions 4) log the transaction event
- Alphabetic
- By Inheritance
- FlowTransactionStream
- JmsStreamSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FlowTransactionStream(internalCf: Option[IdAwareConnectionFactory], headerCfg: FlowHeaderConfig, tMgr: FlowTransactionManager, streamLogger: FlowEnvelopeLogger)(implicit system: ActorSystem)
- internalCf
if the transaction event shall be forwarded to JMS, this the IdAwareConnectionFactory to be used for sending the message
- headerCfg
The FlowHeaderConfig used to calculate the property names
- tMgr
The FlowTransactionManager used to manage the persistence of the known transactions of the container
- streamLogger
a Logger to be used for any logging
- system
The underlying ActorSystem
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def build(): Flow[FlowEnvelope, FlowEnvelope, NotUsed]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jmsConsumer(name: String, settings: JmsConsumerSettings, minMessageDelay: Option[FiniteDuration])(implicit system: ActorSystem): Source[FlowEnvelope, NotUsed]
- Definition Classes
- JmsStreamSupport
- def jmsProducer(name: String, settings: JmsProducerSettings, autoAck: Boolean)(implicit system: ActorSystem): Flow[FlowEnvelope, FlowEnvelope, NotUsed]
- Definition Classes
- JmsStreamSupport
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def processMessages(processFlow: Flow[FlowEnvelope, FlowEnvelope, _], timeout: FiniteDuration, msgs: FlowEnvelope*)(implicit system: ActorSystem): Try[KillSwitch]
Process a sequence of messages with a given flow.
Process a sequence of messages with a given flow. If any of the processed messages cause an exception in the provided flow, the Stream will terminated with this exception been thrown.
The resulting stream will expose a killswitch, so that it stays open and the test code needs to tear it down eventually.
- Definition Classes
- JmsStreamSupport
- def receiveMessages(headerCfg: FlowHeaderConfig, cf: IdAwareConnectionFactory, dest: JmsDestination, log: FlowEnvelopeLogger, listener: Integer = 1, minMessageDelay: Option[FiniteDuration] = None, selector: Option[String] = None, completeOn: Option[(Seq[FlowEnvelope]) => Boolean] = None, timeout: Option[FiniteDuration], ackTimeout: FiniteDuration)(implicit system: ActorSystem): Collector[FlowEnvelope]
- Definition Classes
- JmsStreamSupport
- def sendMessages(producerSettings: JmsProducerSettings, log: FlowEnvelopeLogger, timeout: FiniteDuration, msgs: FlowEnvelope*)(implicit system: ActorSystem): Try[KillSwitch]
- Definition Classes
- JmsStreamSupport
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated