ArtemisItemWriter
@Named @Dependent @Deprecated public class HornetQItemWriter extends HornetQItemReaderWriterBase implements javax.batch.api.chunk.ItemWriter
javax.batch.api.chunk.ItemWriter
that sends data items to a HornetQ address.
It can send the following HornetQ message types:
java.lang.String
, a org.hornetq.api.core.client.ClientMessage#TEXT_TYPE
message is created with the text content in the data item, and sent;
org.hornetq.api.core.client.ClientMessage
, it is sent as is;
org.hornetq.api.core.client.ClientMessage#OBJECT_TYPE
message is created with the data item
object, and sent.
durableMessage
property can be configured to send either durable or non-durable (default) messages.
HornetQItemReader
,
HornetQItemReaderWriterBase
,
JmsItemWriter
Modifier and Type | Field and Description |
---|---|
protected boolean |
durableMessage
Deprecated.
Whether the message to be produced is durable or not.
|
protected org.hornetq.api.core.client.ClientProducer |
producer
Deprecated.
|
connectorFactoryParams, queueAddress, queueName, queueParams, sendAcknowledgementHandler, serverLocator, serverLocatorInstance, serverLocatorParams, session, sessionFactory, sessionFactoryInstance
NEW_LINE, resource, skipBeanValidation
Constructor and Description |
---|
HornetQItemWriter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
void |
open(Serializable checkpoint)
Deprecated.
|
void |
writeItems(List<Object> items)
Deprecated.
|
checkpointInfo, configureServerLocator
getInputStream, getOutputStream, getValidator, validate
@Inject protected boolean durableMessage
protected org.hornetq.api.core.client.ClientProducer producer
public void open(Serializable checkpoint) throws Exception
open
in interface javax.batch.api.chunk.ItemWriter
open
in class HornetQItemReaderWriterBase
Exception
public void writeItems(List<Object> items) throws Exception
writeItems
in interface javax.batch.api.chunk.ItemWriter
Exception
public void close()
close
in interface javax.batch.api.chunk.ItemWriter
close
in class HornetQItemReaderWriterBase
Copyright © 2018 JBoss by Red Hat. All rights reserved.