public class PubSubSubscriberFactoryForEmulator extends Object implements PubSubSubscriberFactory
| Constructor and Description |
|---|
PubSubSubscriberFactoryForEmulator(String hostAndPort,
String project,
String subscription,
int retries,
java.time.Duration timeout,
int maxMessagesPerPull) |
| Modifier and Type | Method and Description |
|---|---|
PubSubSubscriber |
getSubscriber(com.google.auth.Credentials credentials)
Creates a new SubscriberStub using the EventLoopGroup and credentials.
|
public PubSubSubscriber getSubscriber(com.google.auth.Credentials credentials) throws IOException
PubSubSubscriberFactorygetSubscriber in interface PubSubSubscriberFactoryIOExceptionCopyright © 2022–2024 The Apache Software Foundation. All rights reserved.