Skip to content

Commit d85b9af

Browse files
Fixing doc on Publisher/Subscriber about credentials
1 parent a740201 commit d85b9af

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/Publisher.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@
7070
* <li>Retries: such as the maximum duration of retries for a failing batch of messages.
7171
* </ul>
7272
*
73-
* <p>If no credentials are provided, the {@link Publisher} will use application default credentials
74-
* through {@link GoogleCredentials#getApplicationDefault}.
73+
* <p>{@link Publisher} will use the credentials set on the channel, which uses
74+
* application default credentials through {@link GoogleCredentials#getApplicationDefault}
75+
* by default.
7576
*/
7677
public class Publisher {
7778
private static final Logger logger = Logger.getLogger(Publisher.class.getName());

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/Subscriber.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@
7171
* in memory before the receiver either ack or nack them.
7272
* </ul>
7373
*
74-
* <p>If no credentials are provided, the {@link Subscriber} will use application default
75-
* credentials through {@link GoogleCredentials#getApplicationDefault}.
74+
* <p>{@link Subscriber} will use the credentials set on the channel, which uses
75+
* application default credentials through {@link GoogleCredentials#getApplicationDefault}
76+
* by default.
7677
*/
7778
public class Subscriber extends AbstractApiService {
7879
private static final int THREADS_PER_CHANNEL = 5;

0 commit comments

Comments
 (0)