public interface SubscribeOperation extends Checkpointable
| Modifier and Type | Method and Description |
|---|---|
default boolean |
subscribe(String destination,
Consumer<org.springframework.messaging.Message<?>> consumer) |
boolean |
subscribe(String destination,
Consumer<org.springframework.messaging.Message<?>> consumer,
Class<?> messagePayloadType)
Register a message consumer to a given destination.
|
boolean |
unsubscribe(String destination)
Un-register a message consumer.
|
getCheckpointConfig, setCheckpointConfigboolean subscribe(String destination, Consumer<org.springframework.messaging.Message<?>> consumer, Class<?> messagePayloadType)
true if the consumer was subscribed or false if it
was already subscribed.default boolean subscribe(String destination, Consumer<org.springframework.messaging.Message<?>> consumer)
boolean unsubscribe(String destination)
true if the consumer was un-registered, or false
if was not registered.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.