public class GooglePubSubSender extends Object implements EventSender
| Modifier and Type | Class and Description |
|---|---|
static class |
GooglePubSubSender.DefaultHealthChecker |
static interface |
GooglePubSubSender.HealthChecker |
| Modifier and Type | Method and Description |
|---|---|
static GooglePubSubSender |
create(com.google.cloud.pubsub.PubSub pubSub,
String topicPrefix,
GooglePubSubSender.HealthChecker healthchecker) |
void |
send(String topic,
byte[] message) |
void |
start() |
void |
stop() |
public static GooglePubSubSender create(com.google.cloud.pubsub.PubSub pubSub, String topicPrefix, GooglePubSubSender.HealthChecker healthchecker)
public void start()
throws Exception
start in interface io.dropwizard.lifecycle.ManagedExceptionpublic void stop()
throws Exception
stop in interface io.dropwizard.lifecycle.ManagedExceptionpublic void send(String topic, byte[] message)
send in interface EventSenderCopyright © 2017. All rights reserved.