public class FastMessageProducer extends Object implements ConnectionListener
| Modifier and Type | Field and Description |
|---|---|
protected Thread |
acceptThread |
protected List |
connections |
protected XmlCompressedMessageConverter |
converter |
protected Endpoint |
endpoint |
protected MessageBlockWriterFactory |
messageBlockWriterFactory |
protected boolean |
shouldResetOnEveryMessage |
protected TemplateRegistry |
templateRegistry |
NULL| Constructor and Description |
|---|
FastMessageProducer(Endpoint endpoint,
File templatesFile) |
FastMessageProducer(Endpoint endpoint,
File templatesFile,
MessageBlockWriterFactory messageBlockWriterFactory,
boolean shouldResetOnEveryMessage) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(File xmlDataFile) |
void |
encode(InputStream xmlData) |
void |
encode(InputStream xmlData,
boolean loopForever) |
void |
onConnect(Connection connection) |
protected void |
publish(List messages,
List msgOutputStreams) |
void |
start() |
void |
stop() |
protected final Endpoint endpoint
protected final TemplateRegistry templateRegistry
protected Thread acceptThread
protected List connections
protected XmlCompressedMessageConverter converter
protected final MessageBlockWriterFactory messageBlockWriterFactory
protected final boolean shouldResetOnEveryMessage
public FastMessageProducer(Endpoint endpoint, File templatesFile, MessageBlockWriterFactory messageBlockWriterFactory, boolean shouldResetOnEveryMessage)
public void encode(File xmlDataFile) throws FastConnectionException, IOException
FastConnectionExceptionIOExceptionpublic void encode(InputStream xmlData) throws FastConnectionException, IOException
FastConnectionExceptionIOExceptionpublic void encode(InputStream xmlData, boolean loopForever) throws FastConnectionException, IOException
FastConnectionExceptionIOExceptionpublic void start()
public void stop()
public void onConnect(Connection connection)
onConnect in interface ConnectionListenerCopyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.