You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements publish idempotence (default enabled), where the server will ensure that unique messages within a single publisher session are only stored once.
A PublisherClient publishes messages similar to Google Pub/Sub.
@@ -53,7 +59,7 @@ class PublisherClient(PublisherClientInterface, ConstructableFromServiceAccount)
53
59
"""
54
60
55
61
_impl: PublisherClientInterface
56
-
_require_stared: RequireStarted
62
+
_require_started: RequireStarted
57
63
58
64
DEFAULT_BATCHING_SETTINGS=WIRE_DEFAULT_BATCHING
59
65
"""
@@ -67,6 +73,7 @@ def __init__(
67
73
credentials: Optional[Credentials] =None,
68
74
transport: str="grpc_asyncio",
69
75
client_options: Optional[ClientOptions] =None,
76
+
enable_idempotence: bool=True,
70
77
):
71
78
"""
72
79
Create a new PublisherClient.
@@ -76,17 +83,20 @@ def __init__(
76
83
credentials: If provided, the credentials to use when connecting.
77
84
transport: The transport to use. Must correspond to an asyncio transport.
78
85
client_options: The client options to use when connecting. If used, must explicitly set `api_endpoint`.
86
+
enable_idempotence: Whether idempotence is enabled, where the server will ensure that unique messages within a single publisher session are stored only once.
credentials: If provided, the credentials to use when connecting.
148
159
transport: The transport to use. Must correspond to an asyncio transport.
149
160
client_options: The client options to use when connecting. If used, must explicitly set `api_endpoint`.
161
+
enable_idempotence: Whether idempotence is enabled, where the server will ensure that unique messages within a single publisher session are stored only once.
0 commit comments