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

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

Best Java code snippets using org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer.publishIdleContainerEvent (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 checkIdle(long idleEventInterval, long now) {
  if (idleEventInterval > 0
      && now - getLastReceive() > idleEventInterval && now - this.lastAlertAt > idleEventInterval) {
    publishIdleContainerEvent(now - getLastReceive());
    this.lastAlertAt = now;
  }
}
origin: org.springframework.amqp/spring-rabbit

private void checkIdle(long idleEventInterval, long now) {
  if (idleEventInterval > 0
      && now - getLastReceive() > idleEventInterval && now - this.lastAlertAt > idleEventInterval) {
    publishIdleContainerEvent(now - getLastReceive());
    this.lastAlertAt = now;
  }
}
org.springframework.amqp.rabbit.listenerDirectMessageListenerContainerpublishIdleContainerEvent

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

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • onRequestPermissionsResult (Fragment)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JTextField (javax.swing)
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