Tabnine Logo
org.springframework.integration.endpoint
Code IndexAdd Tabnine to your IDE (free)

How to use org.springframework.integration.endpoint

Best Java code snippets using org.springframework.integration.endpoint (Showing top 20 results out of 315)

origin: spring-projects/spring-integration-samples

@Before
public void setup() {
  if (!this.outGateway.isRunning()) {
    TestingUtilities.waitListening(this.crLfServer, 10000L);
    this.client.setPort(this.crLfServer.getPort());
    this.outGateway.start();
  }
}
origin: spring-projects/spring-integration

@Override
public void start() {
  if (this.gatherEndpoint != null) {
    this.gatherEndpoint.start();
  }
}
origin: spring-projects/spring-integration

@Override
protected boolean isReactive() {
  return getOutputChannel() instanceof ReactiveStreamsSubscribableChannel &&
      this.handler instanceof Subscriber;
}
origin: spring-projects/spring-integration-samples

fileInbound.start();
origin: spring-projects/spring-integration

@Override
protected void onInit() {
  super.onInit();
  if (this.evaluationContext == null) {
    this.evaluationContext = ExpressionUtils.createStandardEvaluationContext(this.getBeanFactory());
  }
}
origin: spring-cloud-incubator/spring-cloud-alibaba

@Override
protected void onInit() {
  if (consumerProperties == null
      || !consumerProperties.getExtension().getEnabled()) {
    return;
  }
  super.onInit();
  if (this.retryTemplate != null) {
    Assert.state(getErrorChannel() == null,
        "Cannot have an 'errorChannel' property when a 'RetryTemplate' is "
            + "provided; use an 'ErrorMessageSendingRecoverer' in the 'recoveryCallback' property to "
            + "send an error message when retries are exhausted");
  }
  this.consumer = consumersManager.getOrCreateConsumer(group, destination,
      consumerProperties);
  Boolean isOrderly = consumerProperties.getExtension().getOrderly();
  this.listener = isOrderly ? new CloudStreamMessageListenerOrderly()
      : new CloudStreamMessageListenerConcurrently();
  if (retryTemplate != null) {
    this.retryTemplate.registerListener(this.listener);
  }
}
origin: spring-projects/spring-integration

@Override
public void stop() {
  if (this.gatherEndpoint != null) {
    this.gatherEndpoint.stop();
  }
}
origin: spring-projects/spring-integration

@Override
public void setErrorChannel(MessageChannel errorChannel) {
  super.setErrorChannel(errorChannel);
  this.errorChannel = errorChannel;
}
origin: spring-projects/spring-batch

@Test
public void testJobLaunchingGatewayIsRunning() throws Exception {
  setUp("JobLaunchingGatewayParserTestsRunning-context.xml", getClass());
  assertTrue(this.consumer.isRunning());
  final MessagingTemplate messagingTemplate = TestUtils.getPropertyValue(this.consumer, "handler.messagingTemplate", MessagingTemplate.class);
  final Long sendTimeout = TestUtils.getPropertyValue(messagingTemplate, "sendTimeout", Long.class);
  assertEquals("Wrong sendTimeout", Long.valueOf(-1L),  sendTimeout);
}
origin: spring-projects/spring-integration-samples

Session<FTPFile> session = mock(Session.class);
when(sessionFactory.getSession()).thenReturn(session);
fileInbound.start();
origin: spring-projects/spring-integration-samples

@Before
public void setup() {
  if (!this.outGateway.isRunning()) {
    TestingUtilities.waitListening(this.crLfServer, 10000L);
    this.client.setPort(this.crLfServer.getPort());
    this.outGateway.start();
  }
}
origin: spring-projects/spring-integration

@Override // guarded by super#lifecycleLock
protected void doStart() {
  if (this.replyMessageCorrelator != null) {
    this.replyMessageCorrelator.start();
  }
}
origin: spring-projects/spring-integration

@Override // guarded by super#lifecycleLock
protected void doStop() {
  if (this.replyMessageCorrelator != null) {
    this.replyMessageCorrelator.stop();
  }
}
origin: spring-projects/spring-batch

@Test
public void testGatewayParser() throws Exception {
  setUp("JobLaunchingGatewayParserTests-context.xml", getClass());
  final AbstractMessageChannel inputChannel = TestUtils.getPropertyValue(this.consumer, "inputChannel", AbstractMessageChannel.class);
  assertEquals("requestChannel", inputChannel.getComponentName());
  final JobLaunchingMessageHandler jobLaunchingMessageHandler = TestUtils.getPropertyValue(this.consumer, "handler.jobLaunchingMessageHandler", JobLaunchingMessageHandler.class);
  assertNotNull(jobLaunchingMessageHandler);
  final MessagingTemplate messagingTemplate = TestUtils.getPropertyValue(this.consumer, "handler.messagingTemplate", MessagingTemplate.class);
  final Long sendTimeout = TestUtils.getPropertyValue(messagingTemplate, "sendTimeout", Long.class);
  assertEquals("Wrong sendTimeout", Long.valueOf(123L),  sendTimeout);
  assertFalse(this.consumer.isRunning());
}
origin: spring-projects/spring-integration-samples

@Before
public void beforeTest() throws IOException {
  smtpServer.getMessages().clear();
  tearDown();
  this.fileInboundChannelAdapter.start();
}
origin: spring-projects/spring-integration-samples

@Before
public void setup() {
  if (!this.outGateway.isRunning()) {
    TestingUtilities.waitListening(this.crLfServer, 10000L);
    this.client.setPort(this.crLfServer.getPort());
    this.outGateway.start();
  }
}
origin: spring-projects/spring-integration

@Override
public void start() {
  if (this.endpoint != null) {
    this.endpoint.start();
  }
}
origin: spring-projects/spring-integration-samples

this.jmsInboundChannelAdapter.start();
origin: spring-projects/spring-integration-samples

@Before
public void setup() {
  if (!this.outGateway.isRunning()) {
    TestingUtilities.waitListening(this.crLfServer, 10000L);
    this.client.setPort(this.crLfServer.getPort());
    this.outGateway.start();
  }
}
origin: spring-projects/spring-integration-samples

adapter.start();
org.springframework.integration.endpoint

Most used classes

  • MessageProducerSupport
    A support class for producer endpoints that provides a setter for the output channel and a convenien
  • SourcePollingChannelAdapter
    A Channel Adapter implementation for connecting a MessageSource to a MessageChannel.
  • AbstractEndpoint
    The base class for Message Endpoint implementations.This class implements Lifecycle and provides an
  • EventDrivenConsumer
    Message Endpoint that connects any MessageHandler implementation to a SubscribableChannel.
  • MethodInvokingMessageSource
    A org.springframework.integration.core.MessageSource implementation that invokes a no-argument metho
  • ExpressionMessageProducerSupport,
  • ReactiveStreamsConsumer,
  • AbstractMessageSource,
  • AbstractPollingEndpoint,
  • ExpressionEvaluatingMessageSource,
  • IntegrationConsumer,
  • AbstractFetchLimitingMessageSource,
  • MessageProcessorMessageSource,
  • ReactiveStreamsConsumer$1,
  • ReactiveStreamsConsumer$MessageHandlerSubscriber,
  • AbstractPollingEndpoint$Poller,
  • CorrelationIdTests$TestBean,
  • MessageProducerSupportTests$CustomEndpoint,
  • MessageProducerSupportTests$SuccessfulErrorService
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now