public abstract class AwsServiceDownstreamResponseEvent extends software.amazon.disco.agent.event.ServiceDownstreamResponseEvent implements AwsServiceDownstreamEvent, software.amazon.disco.agent.event.HeaderRetrievable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AwsServiceDownstreamResponseEvent.DataKey
Keys to use in the data map
|
| Constructor and Description |
|---|
AwsServiceDownstreamResponseEvent(java.lang.String origin,
java.lang.String service,
java.lang.String operation,
software.amazon.disco.agent.event.ServiceDownstreamRequestEvent requestEvent)
Construct a new AwsServiceDownstreamResponseEvent
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaderMap()
Deprecated.
deprecated in favour of
HeaderRetrievable which should be used wherever possible instead. |
java.lang.String |
getRequestId()
Retrieve the request ID of the downstream call
|
int |
getRetryCount()
Retrieve the number of times the downstream call had retried.
|
abstract int |
getStatusCode()
Obtain the overall status code of the downstream call.
|
getTypegetRequest, getResponse, getThrown, withResponse, withThrowngetOperation, getService, getServiceEventIdgetData, getOrigin, withDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValueForFieldpublic AwsServiceDownstreamResponseEvent(java.lang.String origin,
java.lang.String service,
java.lang.String operation,
software.amazon.disco.agent.event.ServiceDownstreamRequestEvent requestEvent)
origin - the origin of the downstream call e.g. 'AWSv1' or 'AWSv2'service - the service name e.g. 'DynamoDb'operation - the operation name e.g. 'ListTables'requestEvent - the associated request eventpublic abstract int getStatusCode()
@Deprecated public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderMap()
HeaderRetrievable which should be used wherever possible instead.getHeaderMap in interface AwsServiceDownstreamEventpublic java.lang.String getRequestId()
public int getRetryCount()