Interface Notification (0.152.0-beta)

public interface Notification

An interface for Pub/Sub Notifications in Google Cloud Storage.

This is a light wrapper around a Storage client. See Also: Google Cloud Pub/Sub Notifications for Storage

Methods

create(Storage storage)

public abstract Notification create(Storage storage)
Parameter
NameDescription
storagecom.google.cloud.storage.Storage
Returns
TypeDescription
Notification

createNotification(String bucket, NotificationInfo notification)

public abstract NotificationInfo createNotification(String bucket, NotificationInfo notification)
Parameters
NameDescription
bucketString
notificationNotificationInfo
Returns
TypeDescription
NotificationInfo

deleteNotification(String bucket, String notification)

public abstract boolean deleteNotification(String bucket, String notification)
Parameters
NameDescription
bucketString
notificationString
Returns
TypeDescription
boolean

listNotifications(String bucket)

public abstract List<NotificationInfo> listNotifications(String bucket)
Parameter
NameDescription
bucketString
Returns
TypeDescription
List<NotificationInfo>