public class Channel extends Object
| Constructor and Description |
|---|
Channel() |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(ConsumeSpec spec)
Consume messages on this channel
|
void |
exchangeDeclare(ExchangeSpec spec)
Declare an exchange.
|
void |
prefetch(PrefetchSpec spec)
Specify the maximum number of messages that may be prefetched for this channel
|
void |
publish(PublishSpec spec)
Publish a message on this channel
|
void |
queueDeclare(QueueSpec spec)
Declare a queue.
|
public void exchangeDeclare(@NonNull
ExchangeSpec spec)
spec - the declare specificationpublic void queueDeclare(@NonNull
QueueSpec spec)
spec - the declare specificationpublic void prefetch(@NonNull
PrefetchSpec spec)
spec - the prefetch specificationpublic void publish(@NonNull
PublishSpec spec)
spec - the publish specificationpublic void consume(@NonNull
ConsumeSpec spec)
spec - the consume specificationCopyright © 2017. All rights reserved.