Codota Logo
DirectMessageListenerContainer.checkIdle
Code IndexAdd Codota to your IDE (free)

How to use
checkIdle
method
in
org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer

Best Java code snippets using org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer.checkIdle (Showing top 2 results out of 315)

  • Common ways to obtain DirectMessageListenerContainer
private void myMethod () {
DirectMessageListenerContainer d =
  • Codota Iconnew DirectMessageListenerContainer()
  • Codota IconConnectionFactory connectionFactory;new DirectMessageListenerContainer(connectionFactory)
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-amqp

private void startMonitor(long idleEventInterval, final Map<String, Queue> namesToQueues) {
  this.consumerMonitorTask = this.taskScheduler.scheduleAtFixedRate(() -> {
    long now = System.currentTimeMillis();
    checkIdle(idleEventInterval, now);
    checkConsumers(now);
    if (this.lastRestartAttempt + getFailedDeclarationRetryInterval() < now) {
origin: org.springframework.amqp/spring-rabbit

private void startMonitor(long idleEventInterval, final Map<String, Queue> namesToQueues) {
  this.consumerMonitorTask = this.taskScheduler.scheduleAtFixedRate(() -> {
    long now = System.currentTimeMillis();
    checkIdle(idleEventInterval, now);
    checkConsumers(now);
    if (this.lastRestartAttempt + getFailedDeclarationRetryInterval() < now) {
org.springframework.amqp.rabbit.listenerDirectMessageListenerContainercheckIdle

Popular methods of DirectMessageListenerContainer

  • <init>
    Create an instance with the provided connection factory.
  • setConsumersPerQueue
    Each queue runs in its own consumer; set this property to create multiple consumers for each queue.
  • setAckTimeout
    An approximate timeout; when #setMessagesPerAck(int) is greater than 1, and this time elapses since
  • setMessagesPerAck
    Set the number of messages to receive before acknowledging (success). A failed message will short-ci
  • addQueues
  • afterPropertiesSet
  • getAcknowledgeMode
  • getConnectionFactory
  • getQueueNames
  • isActive
  • isRunning
  • removeQueues
  • isRunning,
  • removeQueues,
  • setIdleEventInterval,
  • setMessageListener,
  • setMissingQueuesFatal,
  • setMonitorInterval,
  • setPrefetchCount,
  • setQueueNames,
  • actualShutDown,
  • actualStart

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Path (java.nio.file)
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
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