Spring Cloud GCP刪除訂閱

2024-01-09 17:58 更新

PubSubAdmin實(shí)現(xiàn)了一種刪除訂閱的方法:

public void deleteSubscription(String subscriptionName)

以下是有關(guān)如何刪除Google Cloud Pub / Sub訂閱的示例:

public void deleteSubscription() {
    pubSubAdmin.deleteSubscription("subscriptionName");
}
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)