public interface EventContextFactory
EventContext
Modifier and Type | Method and Description |
---|---|
static EventContext |
create(FlowConstruct flow,
ComponentLocation location)
Builds a new execution context with the given parameters.
|
static EventContext |
create(FlowConstruct flow,
ComponentLocation location,
String correlationId)
Builds a new execution context with the given parameters and an empty publisher.
|
static EventContext |
create(FlowConstruct flow,
ComponentLocation location,
String correlationId,
Optional<CompletableFuture<Void>> externalCompletion)
Builds a new execution context with the given parameters.
|
static EventContext |
create(FlowConstruct flow,
FlowExceptionHandler exceptionHandler,
ComponentLocation location,
String correlationId,
Optional<CompletableFuture<Void>> externalCompletion)
Builds a new execution context with the given parameters.
|
static EventContext |
create(String id,
String serverId,
ComponentLocation location,
FlowExceptionHandler exceptionHandler)
Builds a new execution context with the given parameters.
|
static EventContext |
create(String id,
String serverId,
ComponentLocation location,
String correlationId,
FlowExceptionHandler exceptionHandler)
Builds a new execution context with the given parameters and an empty publisher.
|
static EventContext |
create(String id,
String serverId,
ComponentLocation location,
String correlationId,
Optional<CompletableFuture<Void>> externalCompletion,
FlowExceptionHandler exceptionHandler)
Builds a new execution context with the given parameters.
|
static EventContext create(FlowConstruct flow, ComponentLocation location)
flow
- the flow that processes events of this context.location
- the location of the component that received the first message for this context.static EventContext create(FlowConstruct flow, ComponentLocation location, String correlationId)
flow
- the flow that processes events of this context.location
- the location of the component that received the first message for this context.correlationId
- See EventContext.getCorrelationId()
.static EventContext create(String id, String serverId, ComponentLocation location, FlowExceptionHandler exceptionHandler)
id
- the unique id for this event context.serverId
- the id of the running mule serverlocation
- the location of the component that received the first message for this context.exceptionHandler
- the exception handler that will deal with an error contextstatic EventContext create(String id, String serverId, ComponentLocation location, String correlationId, FlowExceptionHandler exceptionHandler)
id
- the unique id for this event context.serverId
- the id of the running mule serverlocation
- the location of the component that received the first message for this context.correlationId
- See EventContext.getCorrelationId()
.exceptionHandler
- the exception handler that will deal with an error contextstatic EventContext create(FlowConstruct flow, ComponentLocation location, String correlationId, Optional<CompletableFuture<Void>> externalCompletion)
flow
- the flow that processes events of this context.location
- the location of the component that received the first message for this context.correlationId
- See EventContext.getCorrelationId()
.externalCompletion
- future that completes when source completes enabling termination of BaseEventContext
to
depend on completion of source.static EventContext create(FlowConstruct flow, FlowExceptionHandler exceptionHandler, ComponentLocation location, String correlationId, Optional<CompletableFuture<Void>> externalCompletion)
flow
- the flow that processes events of this context.exceptionHandler
- the exception handler that will deal with an error context. This will be used instead of the one from
the given flow
location
- the location of the component that received the first message for this context.correlationId
- See EventContext.getCorrelationId()
.externalCompletion
- future that completes when source completes enabling termination of BaseEventContext
to
depend on completion of source.static EventContext create(String id, String serverId, ComponentLocation location, String correlationId, Optional<CompletableFuture<Void>> externalCompletion, FlowExceptionHandler exceptionHandler)
id
- the unique id for this event context.location
- the location of the component that received the first message for this context.correlationId
- See EventContext.getCorrelationId()
.externalCompletion
- future that completes when source completes enabling termination of BaseEventContext
to
depend on completion of source.exceptionHandler
- the exception handler that will deal with an error contextCopyright © 2018. All rights reserved.