2019-03-08 06:29:53 +03:00
|
|
|
/*
|
2019-06-20 02:58:25 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2019-03-08 06:29:53 +03:00
|
|
|
*
|
2019-06-20 02:58:25 +03:00
|
|
|
* This software may be used and distributed according to the terms of the
|
|
|
|
* GNU General Public License version 2.
|
2019-03-08 06:29:53 +03:00
|
|
|
*/
|
2017-11-10 02:25:15 +03:00
|
|
|
include "eden/fs/service/eden.thrift"
|
2016-09-19 22:48:12 +03:00
|
|
|
namespace cpp2 facebook.eden
|
|
|
|
|
|
|
|
/** This file holds definitions for the streaming flavor of the Eden interface
|
|
|
|
* This is only available to cpp2 clients and won't compile for other
|
|
|
|
* language/runtimes. */
|
|
|
|
|
2017-03-02 10:02:33 +03:00
|
|
|
service StreamingEdenService extends eden.EdenService {
|
2017-03-21 23:25:30 +03:00
|
|
|
/** Request notification about changes to the journal for
|
|
|
|
* the specified mountPoint.
|
|
|
|
* The JournalPosition at the time of the subscribe call
|
|
|
|
* will be pushed to the client, and then each change will
|
|
|
|
* be pushed to the client in near-real-time.
|
|
|
|
* The client may then use methods like getFilesChangedSince()
|
|
|
|
* to determine the precise nature of the changes.
|
2019-06-24 21:02:33 +03:00
|
|
|
*
|
|
|
|
* This is an implementation of the subscribe API using the
|
2018-09-20 22:47:17 +03:00
|
|
|
* new rsocket based streaming thrift protocol.
|
|
|
|
* The name is temporary: we want to make some API changes
|
|
|
|
* but want to start pushing out an implementation now because
|
|
|
|
* we've seen inflated memory usage for the older `subscribe`
|
|
|
|
* method above. */
|
|
|
|
stream eden.JournalPosition subscribeStreamTemporary(
|
|
|
|
1: string mountPoint)
|
2016-09-19 22:48:12 +03:00
|
|
|
}
|