Package com.atlan.net
Class AtlanEventStreamResponse
java.lang.Object
com.atlan.net.AtlanEventStreamResponse
A response from Atlan's API, with body represented as a list of Strings
(one element in the list per event emitted from the event stream).
-
Constructor Summary
ConstructorDescriptionAtlanEventStreamResponse
(int code, HttpHeaders headers, List<String> events) Initializes a new instance of theAtlanEventStreamResponse
class. -
Method Summary
-
Constructor Details
-
AtlanEventStreamResponse
Initializes a new instance of theAtlanEventStreamResponse
class.- Parameters:
code
- the HTTP status code of the responseheaders
- the HTTP headers of the responseevents
- the events emitted in the response- Throws:
NullPointerException
- ifheaders
orevents
isnull
-
-
Method Details
-
code
public final int code() -
headers
-
body
-
date
Gets the date of the request, as returned by Atlan.- Returns:
- the date of the request, as returned by Atlan
-
metrics
The metrics of the request / response round-trip, if enabled. Note: if retries are also enabled, this will contain ONLY the metrics for the final retry and no others. -
numRetries
public int numRetries()Number of times the request was retried. Used for internal tests only.
-