Link.getQueued
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.qpid.proton.engine.Link.getQueued(Showing top 4 results out of 315)

  • Common ways to obtain Link
private void myMethod () {
Link l =
  • Event event;event.getLink()
  • Smart code suggestions by Codota
}
origin: io.vertx/vertx-proton

@Override
public int getQueued() {
 return link.getQueued();
}
origin: org.apache.qpid/proton-j-impl

private int queued(boolean outgoing)
{
  int count = 0;
  if (_driver != null) {
    for (Connector<?> c : _driver.connectors())
    {
      Connection connection = c.getConnection();
      for (Link link : new Links(connection, ACTIVE, ANY))
      {
        if (outgoing)
        {
          if (link instanceof Sender) count += link.getQueued();
        }
        else
        {
          if (link instanceof Receiver) count += link.getQueued();
        }
      }
    }
  }
  return count;
}
origin: org.apache.qpid/proton-j-impl

total += link.getQueued();
origin: io.vertx/vertx-proton

@Override
public int getQueued() {
 return link.getQueued();
}
org.apache.qpid.proton.engineLinkgetQueued

Javadoc

Gets the number of queued messages for a link. Links may queue deliveries for a number of reasons, for example there may be insufficient #getCredit() to send them to the receiver, they may not have yet had a chance to be written to the wire, or the receiving application has simply not yet processed them.

Popular methods of Link

  • getRemoteSource
  • getRemoteTarget
  • close
  • getSession
  • setSource
    Sets the source for this link. The initiator of the link must always provide a Source. An applicatio
  • setTarget
    Expected to be used in a similar manner to #setSource(Source)
  • getContext
  • getCredit
    Gets the credit balance for a link. Note that a sending link may still be used to send deliveries ev
  • detach
  • getDrain
  • getLocalState
  • open
  • getLocalState,
  • open,
  • free,
  • getName,
  • setCondition,
  • setContext,
  • getRemoteCondition,
  • getTarget,
  • drained

Popular classes and methods

  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)