Tabnine Logo
MessageHandlerOptions.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.microsoft.azure.servicebus.MessageHandlerOptions
constructor

Best Java code snippets using com.microsoft.azure.servicebus.MessageHandlerOptions.<init> (Showing top 6 results out of 315)

origin: Azure/azure-service-bus-java

@Deprecated
@Override
public void registerMessageHandler(IMessageHandler handler) throws InterruptedException, ServiceBusException {
  this.registerMessageHandler(handler, new MessageHandlerOptions());
}    

origin: Azure/azure-service-bus-java

@Override
public void registerMessageHandler(IMessageHandler handler, ExecutorService executorService) throws InterruptedException, ServiceBusException {
  this.registerMessageHandler(handler, new MessageHandlerOptions(), executorService);
}
origin: Microsoft/azure-spring-boot

@PostConstruct
private void postConstruct() {
  LOG.debug("postConstruct start...");
  try {
    LOG.debug("registering queue handler...");
    queueClientForReceiving.registerMessageHandler(new MessageHandler(),
        new MessageHandlerOptions());
    LOG.debug("done registering handlers...");
  } catch (InterruptedException e) {
    LOG.error("Error registering message handler", e);
  } catch (ServiceBusException e) {
    LOG.error("Error registering message handler", e);
  }
  LOG.debug("postConstruct end.");
}
origin: Microsoft/azure-spring-boot

private void receiveSubscriptionMessage() throws ServiceBusException, InterruptedException {
  subscriptionClient.registerMessageHandler(new MessageHandler(), new MessageHandlerOptions());
  TimeUnit.SECONDS.sleep(5);
  subscriptionClient.close();
}
origin: Microsoft/azure-spring-boot

private void receiveQueueMessage() throws ServiceBusException, InterruptedException {
  queueClient.registerMessageHandler(new MessageHandler(), new MessageHandlerOptions());
  TimeUnit.SECONDS.sleep(5);
  queueClient.close();
}
origin: commercetools/commercetools-jvm-sdk

  private static void receiveMessages(QueueClient queueClient) throws InterruptedException, ServiceBusException {

    queueClient.registerMessageHandler(new IMessageHandler() {

      public CompletableFuture<Void> onMessageAsync(IMessage message) {
        return CompletableFuture.completedFuture(null);
      }

      public void notifyException(Throwable exception, ExceptionPhase phase) {}
    }, new MessageHandlerOptions(10000, true, Duration.ofMinutes(2)));
  }
}
com.microsoft.azure.servicebusMessageHandlerOptions<init>

Javadoc

Default constructor for create MessageHandlerOptions with default settings. MessageHandlerOptions#getMaxConcurrentCalls() default value is 1. MessageHandlerOptions#getMaxAutoRenewDuration() default value is 5 minutes. MessageHandlerOptions#isAutoComplete() default is true.

Popular methods of MessageHandlerOptions

  • getMaxAutoRenewDuration
    Gets the maximum duration within which the lock will be renewed automatically. This value should be
  • getMaxConcurrentCalls
    Gets the maximum number of concurrent calls to the callback the message pump should initiate.
  • getMessageWaitDuration
    Gets the time to wait for receiving a message. Defaults to 1 minute.
  • isAutoComplete
    Whether the auto complete is set to true.

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
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