File tree Expand file tree Collapse file tree
branches/autosynth-bigquerystorage/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ refs/tags/v0.69.0: 78f67a29e8b9c46ba01de566a2eae0fd1c03edea
125125refs/heads/autosynth-asset: cd8251de8c40e239ad24dcf9ed93ea2708a3eed5
126126refs/heads/autosynth-automl: cced2f56bbef0499609073edbca6253e1df5e535
127127refs/heads/autosynth-bigquerydatatransfer: a6667617707608b1dbfb02d59c22b5152f208da7
128- refs/heads/autosynth-bigquerystorage: 969bbeef18f004fd51fd46c5def1ae5c644cae3c
128+ refs/heads/autosynth-bigquerystorage: 50a853325b306f27c46026e77976ebbfb7dc0106
129129refs/heads/autosynth-bigtable: fa0d1de9e264d7ecac8a3abc3de7a8364cfaf427
130130refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca
131131refs/heads/autosynth-containeranalysis: 781fdb430a60f9a6491f116e31e4e10118157bdb
Original file line number Diff line number Diff line change 2222import com .google .api .gax .rpc .ApiException ;
2323import com .google .cloud .pubsub .v1 .Publisher ;
2424import com .google .cloud .pubsub .v1 .TopicAdminClient ;
25+ import com .google .common .util .concurrent .MoreExecutors ;
2526import com .google .protobuf .ByteString ;
2627import com .google .pubsub .v1 .ProjectTopicName ;
2728import com .google .pubsub .v1 .PubsubMessage ;
@@ -120,7 +121,8 @@ public void onSuccess(String messageId) {
120121 // Once published, returns server-assigned message ids (unique within the topic)
121122 System .out .println (messageId );
122123 }
123- });
124+ },
125+ MoreExecutors .directExecutor ());
124126 }
125127 } finally {
126128 if (publisher != null ) {
You can’t perform that action at this time.
0 commit comments