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
FastConnectionException
IOException
public void encode(InputStream xmlData) throws FastConnectionException, IOException
FastConnectionException
IOException
public void encode(InputStream xmlData, boolean loopForever) throws FastConnectionException, IOException
FastConnectionException
IOException
public void start()
public void stop()
public void onConnect(Connection connection)
onConnect
in interface ConnectionListener
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.