public final class MessagingServices extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
createTopicIfNotExists(MessagingService messagingService,
co.cask.cdap.proto.id.TopicId topicId) |
static void |
createTopicIfNotExists(MessagingService messagingService,
TopicMetadata topicMetadata) |
static void |
publishWithRetry(MessagingService messagingService,
co.cask.cdap.proto.id.TopicId topicId,
RetryStrategy retryStrategy,
byte[]... payloads) |
public static void createTopicIfNotExists(MessagingService messagingService, co.cask.cdap.proto.id.TopicId topicId) throws IOException
IOExceptionpublic static void createTopicIfNotExists(MessagingService messagingService, TopicMetadata topicMetadata) throws IOException
IOExceptionpublic static void publishWithRetry(MessagingService messagingService, co.cask.cdap.proto.id.TopicId topicId, RetryStrategy retryStrategy, byte[]... payloads) throws co.cask.cdap.api.messaging.TopicNotFoundException, IOException, InterruptedException
co.cask.cdap.api.messaging.TopicNotFoundExceptionIOExceptionInterruptedExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.