congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ManageableMailQueue$MailQueueItemView.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.james.queue.api.ManageableMailQueue$MailQueueItemView
constructor

Best Java code snippets using org.apache.james.queue.api.ManageableMailQueue$MailQueueItemView.<init> (Showing top 2 results out of 315)

origin: org.apache.james/james-server-queue-file

@Override
public boolean hasNext() {
  if (item != null) {
    return true;
  }
  while (items.hasNext()) {
    try (ObjectInputStream in = new ObjectInputStream(new FileInputStream(items.next().getObjectFile()))) {
      final Mail mail = (Mail) in.readObject();
      item = new MailQueueItemView(mail, getNextDelivery(mail));
      return true;
    } catch (IOException | ClassNotFoundException e) {
      LOGGER.info("Unable to load mail", e);
    }
  }
  return false;
}
origin: org.apache.james/james-server-queue-jms

@Override
public MailQueueItemView next() {
  while (hasNext()) {
    try {
      Message m = messages.nextElement();
      return new MailQueueItemView(createMail(m), nextDeliveryDate(m));
    } catch (MessagingException | JMSException e) {
      LOGGER.error("Unable to browse queue", e);
    }
  }
  throw new NoSuchElementException();
}
org.apache.james.queue.apiManageableMailQueue$MailQueueItemView<init>

Popular methods of ManageableMailQueue$MailQueueItemView

  • getMail
  • getNextDelivery

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JFileChooser (javax.swing)
  • 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