Clients -
artemis :
Producer
Represents ActiveMQ Artemis Producer.
Constructor
__init
(Session | EndpointConfiguration sessionOrEndpointConfig, string addressName, AddressConfiguration? addressConfig, int rate)
- sessionOrEndpointConfig Session | EndpointConfiguration
- addressName string
- addressConfig AddressConfiguration? ()
- rate int -1
Remote Methods
send
Sends a message to the producer's address.
close
Closes the ClientProducer. If already closed nothing is done.
Methods
Sends a message to the producer's address.
Parameters
- data MessageContent | Message
-
the
Message
or data to send
-
Return Type
(error?) error
on failure
Closes the ClientProducer. If already closed nothing is done.
-
Return Type
(error?) error
on failure to close.