congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
MessageTimeoutException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.springframework.integration.MessageTimeoutException
constructor

Best Java code snippets using org.springframework.integration.MessageTimeoutException.<init> (Showing top 15 results out of 315)

origin: spring-projects/spring-integration-samples

public MessageTimeoutException noResponse(String input) {
  if ("TIMEOUT_TEST_THROW".equals(input)) {
    throw new MessageTimeoutException("No response received for " + input);
  }
  else {
    return new MessageTimeoutException("No response received for " + input);
  }
}
origin: spring-projects/spring-batch

private Collection<StepExecution> receiveReplies(PollableChannel currentReplyChannel) {
  @SuppressWarnings("unchecked")
  Message<Collection<StepExecution>> message = (Message<Collection<StepExecution>>) messagingGateway.receive(currentReplyChannel);
  if(message == null) {
    throw new MessageTimeoutException("Timeout occurred before all partitions returned");
  } else if (logger.isDebugEnabled()) {
    logger.debug("Received replies: " + message);
  }
  return message.getPayload();
}
origin: spring-projects/spring-integration

logger.debug("trying semaphore");
if (!this.semaphore.tryAcquire(this.requestTimeout, TimeUnit.MILLISECONDS)) {
  throw new MessageTimeoutException(requestMessage, "Timed out waiting for connection");
throw new MessageTimeoutException(requestMessage, "Timed out waiting for response");
origin: spring-projects/spring-integration

error = new MessageTimeoutException((Message<?>) object, "No reply received within timeout");
error = new MessageTimeoutException("No reply received within timeout");
  throw new MessageTimeoutException((Message<?>) object,
      "No reply received from error channel within timeout");
  throw new MessageTimeoutException("No reply received from error channel within timeout");
origin: spring-projects/spring-integration

throw new MessageTimeoutException(requestMessage,
    "failed to receive JMS response within timeout of: " + this.receiveTimeout + "ms");
origin: stackoverflow.com

 if (reply == null && this.errorOnTimeout) {
  if (object instanceof Message) {
    error = new MessageTimeoutException((Message<?>) object, "No reply received within timeout");
  }
  else {
    error = new MessageTimeoutException("No reply received within timeout");
  }
}
origin: Microsoft/spring-cloud-azure

private void waitingSendResponse(CompletableFuture future, Message<?> message)
    throws InterruptedException, ExecutionException {
  Long sendTimeout = this.sendTimeoutExpression.getValue(this.evaluationContext, message, Long.class);
  if (sendTimeout < 0) {
    future.get();
  } else {
    try {
      future.get(sendTimeout, TimeUnit.MILLISECONDS);
      if (log.isDebugEnabled()) {
        log.debug("{} sent successfully in sync mode", message);
      }
    } catch (TimeoutException e) {
      throw new MessageTimeoutException(message, "Timeout waiting for send event hub response", e);
    }
  }
}
origin: com.microsoft.azure/spring-integration-azure-core

private void waitingSendResponse(CompletableFuture future, Message<?> message)
    throws InterruptedException, ExecutionException {
  Long sendTimeout = this.sendTimeoutExpression.getValue(this.evaluationContext, message, Long.class);
  if (sendTimeout < 0) {
    future.get();
  } else {
    try {
      future.get(sendTimeout, TimeUnit.MILLISECONDS);
      if (log.isDebugEnabled()) {
        log.debug("{} sent successfully in sync mode", message);
      }
    } catch (TimeoutException e) {
      throw new MessageTimeoutException(message, "Timeout waiting for send event hub response", e);
    }
  }
}
origin: org.springframework.integration/spring-integration-aws

@Override
protected void handleMessageInternal(Message<?> message) throws Exception {
  Future<?> resultFuture = handleMessageToAws(message);
  if (this.sync) {
    Long sendTimeout = this.sendTimeoutExpression.getValue(this.evaluationContext, message, Long.class);
    if (sendTimeout == null || sendTimeout < 0) {
      resultFuture.get();
    }
    else {
      try {
        resultFuture.get(sendTimeout, TimeUnit.MILLISECONDS);
      }
      catch (TimeoutException te) {
        throw new MessageTimeoutException(message, "Timeout waiting for response from AmazonKinesis", te);
      }
    }
  }
}
origin: spring-projects/spring-integration-aws

@Override
protected void handleMessageInternal(Message<?> message) throws Exception {
  Future<?> resultFuture = handleMessageToAws(message);
  if (this.sync) {
    Long sendTimeout = this.sendTimeoutExpression.getValue(this.evaluationContext, message, Long.class);
    if (sendTimeout == null || sendTimeout < 0) {
      resultFuture.get();
    }
    else {
      try {
        resultFuture.get(sendTimeout, TimeUnit.MILLISECONDS);
      }
      catch (TimeoutException te) {
        throw new MessageTimeoutException(message, "Timeout waiting for response from AmazonKinesis", te);
      }
    }
  }
}
origin: org.springframework.integration/spring-integration-ip

logger.debug("trying semaphore");
if (!this.semaphore.tryAcquire(this.requestTimeout, TimeUnit.MILLISECONDS)) {
  throw new MessageTimeoutException(requestMessage, "Timed out waiting for connection");
throw new MessageTimeoutException(requestMessage, "Timed out waiting for response");
origin: spring-projects/spring-integration-kafka

throw new MessageTimeoutException(message, "Timeout waiting for response from KafkaProducer", te);
origin: org.springframework.integration/spring-integration-kafka

throw new MessageTimeoutException(message, "Timeout waiting for response from KafkaProducer", te);
origin: org.springframework.integration/spring-integration-core

error = new MessageTimeoutException((Message<?>) object, "No reply received within timeout");
error = new MessageTimeoutException("No reply received within timeout");
  throw new MessageTimeoutException((Message<?>) object,
      "No reply received from error channel within timeout");
  throw new MessageTimeoutException("No reply received from error channel within timeout");
origin: org.springframework.integration/spring-integration-jms

throw new MessageTimeoutException(requestMessage,
    "failed to receive JMS response within timeout of: " + this.receiveTimeout + "ms");
org.springframework.integrationMessageTimeoutException<init>

Popular methods of MessageTimeoutException

  • getMessage

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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