public class PublishSpec extends OperationSpec<PublishSpec>
Channel.publish(io.buybrain.hamq.PublishSpec).| Constructor and Description |
|---|
PublishSpec(String exchange,
String routingKey,
byte[] body) |
| Modifier and Type | Method and Description |
|---|---|
static PublishSpec |
queue(String queueName,
byte[] body)
Static factory shorthand for publishing directly to a queue
|
withRetryPolicypublic static PublishSpec queue(@NonNull String queueName, byte[] body)
queueName - the name of the queue to publish tobody - the body as a byte arrayCopyright © 2017. All rights reserved.