summaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Storage/INotifyStorage.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-01-06 15:39:01 +0100
committerRobin Appelman <robin@icewind.nl>2017-01-27 10:44:33 +0100
commit269747985e1f17ab5cafa0ff02d811433683f7e8 (patch)
tree499a75038209518b9fa24cfc1a4c53c0447ea519 /lib/public/Files/Storage/INotifyStorage.php
parent0aa211eefb4fd8d007f07d720825b9aa86e3c6ea (diff)
downloadnextcloud-server-269747985e1f17ab5cafa0ff02d811433683f7e8.tar.gz
nextcloud-server-269747985e1f17ab5cafa0ff02d811433683f7e8.zip
Add a more powerful notify mechanism
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Files/Storage/INotifyStorage.php')
-rw-r--r--lib/public/Files/Storage/INotifyStorage.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/Files/Storage/INotifyStorage.php b/lib/public/Files/Storage/INotifyStorage.php
index e99124abdfd..c6fdd44724f 100644
--- a/lib/public/Files/Storage/INotifyStorage.php
+++ b/lib/public/Files/Storage/INotifyStorage.php
@@ -23,6 +23,8 @@
namespace OCP\Files\Storage;
+use OCP\Files\Notify\INotifyHandler;
+
/**
* Storage backend that support active notifications
*
@@ -48,6 +50,17 @@ interface INotifyStorage {
* @param callable $callback
*
* @since 9.1.0
+ * @deprecated 12.0.0 use INotifyStorage::notify()->listen() instead
*/
public function listen($path, callable $callback);
+
+ /**
+ * Start the notification handler for this storage
+ *
+ * @param $path
+ * @return INotifyHandler
+ *
+ * @since 12.0.0
+ */
+ public function notify($path);
}