OptionalbatchThe name of the consumer. Messages are stored for a consumer and published by the consumers of the same name. At most 250 characters.
Returns the options of the mysql2 pool that Hermes creates for itself.
OptionalleaseHow long a claim of a partition (or of a message) lasts. Another instance takes over the messages of an instance that died after this time.
OptionalmaxThe maximum number of partitions an instance publishes at the same time (ordering: 'partition').
OptionalmigrateWhether start() runs the migrations of the Hermes tables. Turn it off when you run migrate yourself,
e.g. in a deployment pipeline.
OptionalonCalled when a query fails, e.g. when the database is not available.
OptionalonCalled when a message cannot be published.
OptionalorderingHow the messages are ordered and shared between many instances of the application.
'partition': the messages of a partition are published one by one, in the order they were stored, by one
instance at a time. A message that cannot be published stops its partition until it is published.'none': the messages are published in any order, many instances share the messages of one partition, and a
message that cannot be published does not stop other messages.OptionalpartitionPublish only the messages of this partition. All the partitions of the consumer when not given: the instances of your application share them.
OptionalpollingThe maximum number of connections of the pool that Hermes polls with. It is apart from the pool of
OutboxConsumer.getDbConnection, so count both against max_connections of MySQL.
OptionalpollHow long to wait between polls when there was nothing more to publish.
Publishes a message, e.g. to a message broker. Throw to publish it again later.
OptionalretryHow long to wait before publishing a failed message again.
The maximum number of messages of a partition published per poll.