class StreamContext extends AnyRef
A stream context required by the Camel DSL elements for FS2 and Akka Streams.
- Alphabetic
- By Inheritance
- StreamContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
StreamContext(camelContext: CamelContext, executorServiceFactory: ExecutorServiceFactory = ..., config: Config = ConfigFactory.load())
- camelContext
externally managed CamelContext. Applications are responsible for starting the
CamelContext
before starting thisStreamContext
and stopping theCamelContext
after stopping thisStreamContext
.- executorServiceFactory
factory for creating this stream context's
executorService
.
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
- val camelContext: CamelContext
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val config: Config
-
def
consumer(uri: String, processor: AsyncProcessor): Consumer
A Camel consumer for given
uri
.A Camel consumer for given
uri
. If the corresponding endpoint doesn't exist yet, it is created and started. The returned consumer must be started (and stopped) by the caller. -
lazy val
consumerTemplate: ConsumerTemplate
A Camel consumer template created from
camelContext
. -
def
convertObject[A](obj: Any, clazz: Class[A]): A
Java API.
Java API.
Converts
obj
toclazz
using a Camel type converter.- Exceptions thrown
TypeConversionException
if type conversion fails.
-
def
convertObject[A](obj: Any)(implicit classTag: ClassTag[A]): A
Converts
obj
to typeA
using a Camel type converter.Converts
obj
to typeA
using a Camel type converter.- Exceptions thrown
TypeConversionException
if type conversion fails.
-
def
createExchange[A](message: StreamMessage[A], pattern: ExchangePattern): Exchange
Creates a Camel Exchange of given
pattern
and inputmessage
. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
lazy val
executorService: ExecutorService
Executor service used for running blocking endpoint operations.
Executor service used for running blocking endpoint operations. It is created with
executorServiceFactory
. -
final
def
getClass(): Class[_]
- 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
-
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()
-
lazy val
producerTemplate: ProducerTemplate
A Camel producer template created from
camelContext
. -
def
start(): StreamContext
Starts this
StreamContext
and returnsthis
. -
def
stop(): Unit
Stops this
StreamContext
. -
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.