Class SmarterMessageListenerAdapter

java.lang.Object
org.subethamail.smtp.helper.SmarterMessageListenerAdapter
All Implemented Interfaces:
MessageHandlerFactory

public class SmarterMessageListenerAdapter extends Object implements MessageHandlerFactory
MessageHandlerFactory implementation which adapts to a collection of SmarterMessageListeners. This is actually half-way between the SimpleMessageListener interface and the raw MessageHandler. The key point is that for any message, every accepted recipient will get a separate delivery.
Author:
Jeff Schnitzer
  • Constructor Details

    • SmarterMessageListenerAdapter

      public SmarterMessageListenerAdapter(SmarterMessageListener listener)
      Initializes this factory with a single listener. Default data deferred size is 5 megs.
    • SmarterMessageListenerAdapter

      public SmarterMessageListenerAdapter(Collection<SmarterMessageListener> listeners)
      Initializes this factory with the listeners. Default data deferred size is 5 megs.
    • SmarterMessageListenerAdapter

      public SmarterMessageListenerAdapter(Collection<SmarterMessageListener> listeners, int dataDeferredSize)
      Initializes this factory with the listeners.
      Parameters:
      dataDeferredSize - The server will buffer incoming messages to disk when they hit this limit in the DATA received.
  • Method Details