class DefaultStreamContext extends StreamContext
A default StreamContext with an internally managed DefaultCamelContext. The lifecycle
of the DefaultCamelContext
is bound to the lifecycle of this DefaultStreamContext
.
- Alphabetic
- By Inheritance
- DefaultStreamContext
- StreamContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
DefaultStreamContext(executorServiceFactory: ExecutorServiceFactory)
- 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
- Definition Classes
- StreamContext
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
val
config: Config
- Definition Classes
- StreamContext
-
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.- Definition Classes
- StreamContext
-
lazy val
consumerTemplate: ConsumerTemplate
A Camel consumer template created from
camelContext
.A Camel consumer template created from
camelContext
.- Definition Classes
- StreamContext
-
def
convertObject[A](obj: Any, clazz: Class[A]): A
Java API.
Java API.
Converts
obj
toclazz
using a Camel type converter.- Definition Classes
- StreamContext
- 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.- Definition Classes
- StreamContext
- 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
.Creates a Camel Exchange of given
pattern
and inputmessage
.- Definition Classes
- StreamContext
-
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
.- Definition Classes
- StreamContext
-
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
.A Camel producer template created from
camelContext
.- Definition Classes
- StreamContext
-
def
start(): DefaultStreamContext
Starts this
StreamContext
including the internally managed DefaultCamelContext and returnsthis
.Starts this
StreamContext
including the internally managed DefaultCamelContext and returnsthis
.- Definition Classes
- DefaultStreamContext → StreamContext
-
def
stop(): Unit
Stops this
StreamContext
including the internally managed DefaultCamelContext.Stops this
StreamContext
including the internally managed DefaultCamelContext.- Definition Classes
- DefaultStreamContext → 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.