public class SimpleMessageListenerAdapter extends java.lang.Object implements MessageHandlerFactory
Constructor and Description |
---|
SimpleMessageListenerAdapter(java.util.Collection<SimpleMessageListener> listeners)
Initializes this factory with the listeners.
|
SimpleMessageListenerAdapter(java.util.Collection<SimpleMessageListener> listeners,
int dataDeferredSize)
Initializes this factory with the listeners.
|
SimpleMessageListenerAdapter(SimpleMessageListener listener)
Initializes this factory with a single listener.
|
Modifier and Type | Method and Description |
---|---|
MessageHandler |
create(MessageContext ctx)
Called for the exchange of a single message during an SMTP conversation.
|
public SimpleMessageListenerAdapter(SimpleMessageListener listener)
public SimpleMessageListenerAdapter(java.util.Collection<SimpleMessageListener> listeners)
public SimpleMessageListenerAdapter(java.util.Collection<SimpleMessageListener> listeners, int dataDeferredSize)
dataDeferredSize
- The server will buffer
incoming messages to disk when they hit this limit in the
DATA received.public MessageHandler create(MessageContext ctx)
MessageHandlerFactory
create
in interface MessageHandlerFactory
ctx
- provides information about the client.Copyright © 2006–2013. All rights reserved.