Class ServiceDownstreamResponseEvent
- java.lang.Object
-
- software.amazon.disco.agent.event.AbstractEvent
-
- software.amazon.disco.agent.event.AbstractServiceEvent
-
- software.amazon.disco.agent.event.AbstractServiceResponseEvent
-
- software.amazon.disco.agent.event.ServiceDownstreamResponseEvent
-
- All Implemented Interfaces:
Event,ServiceEvent,ServiceResponseEvent
- Direct Known Subclasses:
HttpServiceDownstreamResponseEvent
public class ServiceDownstreamResponseEvent extends AbstractServiceResponseEvent
Concrete ServiceEvent to express when a service downstream call which has completed, i.e. when the service-under-test is making a request of an intercepted subsystem e.g. a remote service or an in-process Cache client.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.disco.agent.event.ServiceEvent
ServiceEvent.Type
-
-
Field Summary
-
Fields inherited from class software.amazon.disco.agent.event.AbstractEvent
data, origin
-
-
Constructor Summary
Constructors Constructor Description ServiceDownstreamResponseEvent(java.lang.String origin, java.lang.String service, java.lang.String operation, ServiceRequestEvent requestEvent)Construct a ServiceDownstreamRequestEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceEvent.TypegetType()Get the type of this ServiceEvent-
Methods inherited from class software.amazon.disco.agent.event.AbstractServiceResponseEvent
getRequest, getResponse, getThrown, withResponse, withThrown
-
Methods inherited from class software.amazon.disco.agent.event.AbstractServiceEvent
getOperation, getService
-
Methods inherited from class software.amazon.disco.agent.event.AbstractEvent
getData, getOrigin, withData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.disco.agent.event.ServiceEvent
getOperation, getService
-
-
-
-
Constructor Detail
-
ServiceDownstreamResponseEvent
public ServiceDownstreamResponseEvent(java.lang.String origin, java.lang.String service, java.lang.String operation, ServiceRequestEvent requestEvent)Construct a ServiceDownstreamRequestEvent- Parameters:
origin- the origin of the downstream call e.g. 'Web' or 'gRPC'service- the service name e.g. 'WeatherService'operation- the operation name e.g. 'getWeather'requestEvent- the associated request event
-
-
Method Detail
-
getType
public ServiceEvent.Type getType()
Get the type of this ServiceEvent- Specified by:
getTypein interfaceServiceEvent- Specified by:
getTypein classAbstractServiceEvent- Returns:
- either ACTIVITY or DOWNSTREAM
-
-