public interface RequestBuilder
Modifier and Type | Method and Description |
---|---|
BeatApi.BeatResponse |
execute()
Executes the request to the Sysomos Heartbeat API and returns a valid response
|
URL |
getRequestUrl()
Returns the full url need to execute a request.
|
RequestBuilder |
setAddedAfterDate(org.joda.time.DateTime afterDate)
Sets the date after which documents should be returned from Sysomos.
|
RequestBuilder |
setAddedBeforeDate(org.joda.time.DateTime beforeDate)
Sets the date before which documents should be returned from Sysomos.
|
RequestBuilder |
setHeartBeatId(int hid)
Sets the Sysomos Heartbeat ID.
|
RequestBuilder |
setHeartBeatId(String hid)
Sets the Sysomos Heartbeat ID as a String.
|
RequestBuilder |
setOffset(long offset)
Sets the starting offset for the number of documents given the other parameters.
|
RequestBuilder |
setReturnSetSize(long size)
Sets the size of the expected response.
|
RequestBuilder setAddedAfterDate(org.joda.time.DateTime afterDate)
afterDate
- the DateTime
instance representing the after dateRequestBuilder setAddedBeforeDate(org.joda.time.DateTime beforeDate)
beforeDate
- the DateTime
instance representing the before dateRequestBuilder setReturnSetSize(long size)
size
- the number of documentsRequestBuilder setOffset(long offset)
offset
- the starting offsetRequestBuilder setHeartBeatId(int hid)
hid
- Heartbeat IDRequestBuilder setHeartBeatId(String hid)
hid
- Heartbeat ID stringURL getRequestUrl()
BeatApi.BeatResponse execute()
Copyright © 2018 The Apache Software Foundation. All rights reserved.