Package akka.camel.internal
Class DefaultCamel
- java.lang.Object
-
- akka.camel.internal.DefaultCamel
-
- All Implemented Interfaces:
Extension,Activation,Camel
public class DefaultCamel extends java.lang.Object implements Camel
Starts camel and underlying camel context and template. Only the creator of Camel should start and stop it.- See Also:
shutdown()
-
-
Constructor Summary
Constructors Constructor Description DefaultCamel(ExtendedActorSystem system)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.concurrent.Future<ActorRef>activationFutureFor(ActorRef endpoint, Timeout timeout, scala.concurrent.ExecutionContext executor)Produces a Future with the specified endpoint that will be completed when the endpoint has been activated, or if it times out, which will happen after the specified Timeout.org.apache.camel.impl.DefaultCamelContextcontext()scala.concurrent.Future<ActorRef>deactivationFutureFor(ActorRef endpoint, Timeout timeout, scala.concurrent.ExecutionContext executor)Produces a Future which will be completed when the given endpoint has been deactivated or or if it times out, which will happen after the specified Timeout.LoggingAdapterlog()CamelSettingssettings()The settings for the CamelExtensionvoidshutdown()Stops camel and underlying camel context and template.DefaultCamelstart()Starts camel and underlying camel context and template.ActorRefsupervisor()INTERNAL API Returns the camel supervisor actor.ExtendedActorSystemsystem()INTERNAL API Returns the associated ActorSystem.org.apache.camel.ProducerTemplatetemplate()The Camel ProducerTemplate.
-
-
-
Constructor Detail
-
DefaultCamel
public DefaultCamel(ExtendedActorSystem system)
-
-
Method Detail
-
activationFutureFor
public scala.concurrent.Future<ActorRef> activationFutureFor(ActorRef endpoint, Timeout timeout, scala.concurrent.ExecutionContext executor)
Produces a Future with the specified endpoint that will be completed when the endpoint has been activated, or if it times out, which will happen after the specified Timeout.- Specified by:
activationFutureForin interfaceActivation- Parameters:
endpoint- the endpoint to be activatedtimeout- the timeout for the Futureexecutor- (undocumented)- Returns:
- (undocumented)
-
context
public org.apache.camel.impl.DefaultCamelContext context()
-
deactivationFutureFor
public scala.concurrent.Future<ActorRef> deactivationFutureFor(ActorRef endpoint, Timeout timeout, scala.concurrent.ExecutionContext executor)
Produces a Future which will be completed when the given endpoint has been deactivated or or if it times out, which will happen after the specified Timeout.- Specified by:
deactivationFutureForin interfaceActivation- Parameters:
endpoint- the endpoint to be deactivatedtimeout- the timeout of the Futureexecutor- (undocumented)- Returns:
- (undocumented)
-
log
public LoggingAdapter log()
-
settings
public CamelSettings settings()
Description copied from interface:CamelThe settings for the CamelExtension
-
shutdown
public void shutdown()
Stops camel and underlying camel context and template. Only the creator of Camel should shut it down. There is no need to stop Camel instance, which you get from the CamelExtension, as its lifecycle is bound to the actor system.- See Also:
start()
-
start
public DefaultCamel start()
Starts camel and underlying camel context and template. Only the creator of Camel should start and stop it.- Returns:
- (undocumented)
- See Also:
shutdown()
-
supervisor
public ActorRef supervisor()
Description copied from interface:CamelINTERNAL API Returns the camel supervisor actor.- Specified by:
supervisorin interfaceCamel- Returns:
- (undocumented)
-
system
public ExtendedActorSystem system()
Description copied from interface:CamelINTERNAL API Returns the associated ActorSystem.
-
-