Definition of the request - push or pull?
Push or pull? You do not have to decide – mixed operation is also possible.
Two different clients are available for this purpose. To retrieve pull (or static) data, use the SamplePullData.java file. Push requests ("streaming data") are executed via the SamplePushData.java file, which also supports pull requests.
Both samples are called by the Sample
class as starting point.