You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(*) : change base package + add facade interface to create clients
- change jdk to sdk
- create StreamdataClient a facade interface to create clients
- rename StreamApiClient in RxJavaEventSourceClient
- rename RxJavaEventSourceClient.toObservable() in toFlowable()
- rename EventSourceClient.getCurrentData() en getCurrentSnaphot()
- make Event an internal class of RxJavaEventSourceClient
* <p>Allow to enable or disable incremental cache. <b>By default incremental cache is enabled</b> thus the following happens : a Snapshot is sent back to the user followed by successive patches of this snapshot.</p>
42
-
* <p>If set to false a snapshot will be sent every time, no patch is sent. This means that {@link Event#getPatch()} will return null <b>Use this only for low frequency polling</b></p>
29
+
* <p>If set to false a snapshot will be sent every time, no patch is sent. This means that {@link RxJavaEventSourceClient.Event#getPatch()} will return null <b>Use this only for low frequency polling</b></p>
43
30
* <p>Behind the scene it adds the header <code>text/event-stream</code> for patches or <code>application/json</code> for non-incremental cache</p>
44
31
*
45
32
* @param enableIncrementalCache a boolean to allow incremental cache (default : true)
* Sets a callback to be called every time streamdata pushes a patch. The patch is applied behind the scenes and can be accessed in a thread safe fashion using {@link #getCurrentData()}
54
+
* Sets a callback to be called every time streamdata pushes a patch. The patch is applied behind the scenes and can be accessed in a thread safe fashion using {@link #getCurrentSnapshot()}
68
55
* * <b>This callback must be set before calling {@link #open()}</b>
0 commit comments