public static interface PubsubClient.PubsubClientFactory
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKind()
Return the display name for this factory.
|
PubsubClient |
newClient(@Nullable java.lang.String timestampAttribute,
@Nullable java.lang.String idAttribute,
PubsubOptions options) |
PubsubClient |
newClient(@Nullable java.lang.String timestampAttribute,
@Nullable java.lang.String idAttribute,
PubsubOptions options,
@Nullable java.lang.String rootUrlOverride)
Construct a new Pubsub client.
|
PubsubClient newClient(@Nullable java.lang.String timestampAttribute, @Nullable java.lang.String idAttribute, PubsubOptions options, @Nullable java.lang.String rootUrlOverride) throws java.io.IOException
Closeable.close()
in order to ensure tidy
cleanup of underlying netty resources (or use the try-with-resources construct). Uses options
to derive pubsub endpoints and application credentials. If non-null, use
timestampAttribute
and idAttribute
to store custom timestamps/ids within
message metadata.java.io.IOException
PubsubClient newClient(@Nullable java.lang.String timestampAttribute, @Nullable java.lang.String idAttribute, PubsubOptions options) throws java.io.IOException
java.io.IOException
java.lang.String getKind()