Codota Logo
org.mule.runtime.core.api.event
Code IndexAdd Codota to your IDE (free)

How to use org.mule.runtime.core.api.event

Best Java code snippets using org.mule.runtime.core.api.event (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: mulesoft/mule

private CoreEvent createMuleEvent(Message message, int numProperties) {
 final Builder builder;
 try {
  builder = CoreEvent.builder(create(flow, CONNECTOR_LOCATION)).message(message);
 } catch (Exception e) {
  throw new RuntimeException(e);
 }
 for (int i = 1; i <= numProperties; i++) {
  builder.addVariable("FlOwVaRiAbLeKeY" + i, "val");
 }
 return builder.build();
}
origin: mulesoft/mule

@Benchmark
public CoreEvent addEventVariableEventWith50VariablesProperties() {
 return CoreEvent.builder(eventWith50VariablesProperties).addVariable(KEY, VALUE).build();
}
origin: mulesoft/mule

@Benchmark
public CoreEvent copyEventWith100VariablesProperties() {
 return CoreEvent.builder(eventWith100VariablesProperties).build();
}
origin: mulesoft/mule

private Processor createSetStringMessageProcessor(final String appendText) {
 return event -> {
  return CoreEvent.builder(event).message(InternalMessage.builder(event.getMessage()).value(appendText).build()).build();
 };
}
origin: mulesoft/mule

 @Override
 public CoreEvent process(CoreEvent event) throws MuleException {
  return CoreEvent.builder(event).message(result).build();
 }
});
origin: mulesoft/mule

 /**
  * {@inheritDoc}
  *
  * @return {@link ExecutionContextAdapter#getEvent()}
  */
 @Override
 public CoreEvent asReturnValue(Object value, ExecutionContextAdapter operationContext) {
  return CoreEvent.builder(operationContext.getEvent()).securityContext(operationContext.getSecurityContext()).build();
 }
}
origin: mulesoft/mule

private MessagingException buildFailingFlowException(final CoreEvent event, final Exception exception) {
 return new MessagingException(CoreEvent.builder(event)
   .error(ErrorBuilder.builder(exception).errorType(ERROR_FROM_FLOW).build())
   .build(), exception);
}
origin: mulesoft/mule

@Test
public void setNullMessage() throws Exception {
 expected.expect(NullPointerException.class);
 builder(messageContext).message((Message) null);
}
origin: mulesoft/mule

 @Override
 public CoreEvent process(CoreEvent event) throws MuleException {
  correlationId = event.getCorrelationId();
  return event;
 }
}
origin: mulesoft/mule

private CoreEvent createEventToSerialize() throws Exception {
 createAndRegisterTransformersEndpointBuilderService();
 return testEvent();
}
origin: mulesoft/mule

 public CoreEvent createEvent(Flow flow, Object payload) {
  try {
   return CoreEvent.builder(create(flow, CONNECTOR_LOCATION)).message(of(payload)).build();
  } catch (Exception e) {
   throw new RuntimeException(e);
  }
 }
}
origin: mulesoft/mule

@Benchmark
public CoreEvent addEventVariable() {
 return CoreEvent.builder(event).addVariable(KEY, VALUE).build();
}
origin: mulesoft/mule

@Benchmark
public CoreEvent copyEventWith20VariablesProperties() {
 return CoreEvent.builder(eventWith10VariablesProperties).build();
}
origin: mulesoft/mule

private CoreEvent baseEvent() throws MuleException {
 FlowConstruct flowConstruct = getTestFlow(muleContext);
 return CoreEvent.builder(create(flowConstruct, TEST_CONNECTOR_LOCATION)).message(Message.of(TEST_PAYLOAD)).build();
}
origin: mulesoft/mule

@Benchmark
public CoreEvent addEventVariableEventWith20VariablesProperties() {
 return CoreEvent.builder(eventWith10VariablesProperties).addVariable(KEY, VALUE).build();
}
origin: mulesoft/mule

@Benchmark
public CoreEvent copyEvent() {
 return CoreEvent.builder(event).build();
}
origin: mulesoft/mule

@Benchmark
public CoreEvent createEvent() {
 return CoreEvent.builder(create(flow, CONNECTOR_LOCATION)).message(of(PAYLOAD)).build();
}
origin: mulesoft/mule

@Benchmark
public CoreEvent addEventVariableEventWith100VariablesProperties() {
 return CoreEvent.builder(eventWith100VariablesProperties).addVariable(KEY, VALUE).build();
}
origin: mulesoft/mule

 @Test
 public void dontSetMessage() throws Exception {
  expected.expect(NullPointerException.class);
  muleEvent = (PrivilegedEvent) builder(messageContext).build();
 }
}
origin: mulesoft/mule

protected CoreEvent getTestEventUsingFlow(Object data) throws MuleException {
 return CoreEvent.builder(create(flow, TEST_CONNECTOR_LOCATION)).message(of(data)).build();
}
org.mule.runtime.core.api.event

Most used classes

  • CoreEvent
  • CoreEvent$Builder
  • EventContextFactory
  • EventContextService$FlowStackEntry
  • EventContextService
  • MuleEventTestCase
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now