javax.mail.Transport.queueEvent()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(9.4k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中javax.mail.Transport.queueEvent()方法的一些代码示例,展示了Transport.queueEvent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transport.queueEvent()方法的具体详情如下:
包路径:javax.mail.Transport
类名称:Transport
方法名:queueEvent

Transport.queueEvent介绍

暂无

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   *
   * @param    type    the TransportEvent type
   * @param    validSent valid addresses to which message was sent
   * @param    validUnsent valid addresses to which message was not sent
   * @param    invalid the invalid addresses
   * @param    msg    the message
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

代码示例来源:origin: com.sun.mail/javax.mail

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   *
   * @param    type    the TransportEvent type
   * @param    validSent valid addresses to which message was sent
   * @param    validUnsent valid addresses to which message was not sent
   * @param    invalid the invalid addresses
   * @param    msg    the message
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.4_spec

protected void notifyTransportListeners(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message message) {
    queueEvent(new TransportEvent(this, type, validSent, validUnsent, invalid, message), transportListeners);
  }
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.3.1_spec

protected void notifyTransportListeners(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message message) {
    queueEvent(new TransportEvent(this, type, validSent, validUnsent, invalid, message), transportListeners);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

代码示例来源:origin: javax.mail/javax.mail-api

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   *
   * @param    type    the TransportEvent type
   * @param    validSent valid addresses to which message was sent
   * @param    validUnsent valid addresses to which message was not sent
   * @param    invalid the invalid addresses
   * @param    msg    the message
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   *
   * @param    type    the TransportEvent type
   * @param    validSent valid addresses to which message was sent
   * @param    validUnsent valid addresses to which message was not sent
   * @param    invalid the invalid addresses
   * @param    msg    the message
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

代码示例来源:origin: com.sun.mail/android-mail

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   *
   * @param    type    the TransportEvent type
   * @param    validSent valid addresses to which message was sent
   * @param    validUnsent valid addresses to which message was not sent
   * @param    invalid the invalid addresses
   * @param    msg    the message
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   *
   * @param    type    the TransportEvent type
   * @param    validSent valid addresses to which message was sent
   * @param    validUnsent valid addresses to which message was not sent
   * @param    invalid the invalid addresses
   * @param    msg    the message
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

代码示例来源:origin: com.sun.mail/mailapi

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   *
   * @param    type    the TransportEvent type
   * @param    validSent valid addresses to which message was sent
   * @param    validUnsent valid addresses to which message was not sent
   * @param    invalid the invalid addresses
   * @param    msg    the message
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

代码示例来源:origin: com.sun.mail/jakarta.mail

/**
   * Notify all TransportListeners. Transport implementations are
   * expected to use this method to broadcast TransportEvents.<p>
   *
   * The provided default implementation queues the event into
   * an internal event queue. An event dispatcher thread dequeues
   * events from the queue and dispatches them to the registered
   * TransportListeners. Note that the event dispatching occurs
   * in a separate thread, thus avoiding potential deadlock problems.
   *
   * @param    type    the TransportEvent type
   * @param    validSent valid addresses to which message was sent
   * @param    validUnsent valid addresses to which message was not sent
   * @param    invalid the invalid addresses
   * @param    msg    the message
   */
  protected void notifyTransportListeners(int type, Address[] validSent,
            Address[] validUnsent,
            Address[] invalid, Message msg) {
  if (transportListeners == null)
    return;
  
  TransportEvent e = new TransportEvent(this, type, validSent, 
             validUnsent, invalid, msg);
  queueEvent(e, transportListeners);
  }
}

相关文章