Class ServiceDownstreamCancellationEvent
- java.lang.Object
-
- software.amazon.disco.agent.event.AbstractEvent
-
- software.amazon.disco.agent.event.AbstractServiceEvent
-
- software.amazon.disco.agent.event.AbstractServiceCancellationEvent
-
- software.amazon.disco.agent.event.ServiceDownstreamCancellationEvent
-
- All Implemented Interfaces:
CancellationEvent,Event,ServiceCancellationEvent,ServiceEvent
public class ServiceDownstreamCancellationEvent extends AbstractServiceCancellationEvent
An event issued to the event bus when downstream service request is cancelled
-
-
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 ServiceDownstreamCancellationEvent(java.lang.String origin, java.lang.String service, java.lang.String operation, ServiceDownstreamRequestEvent requestEvent)Constructor for a ServiceDownstreamCancellationEvent
-
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.AbstractServiceCancellationEvent
getRequest, withRequest
-
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
-
-
-
-
Constructor Detail
-
ServiceDownstreamCancellationEvent
public ServiceDownstreamCancellationEvent(java.lang.String origin, java.lang.String service, java.lang.String operation, ServiceDownstreamRequestEvent requestEvent)Constructor for a ServiceDownstreamCancellationEvent- Parameters:
origin- the origin of this event e.g. 'Web' or 'gRPC'service- the service name e.g. WeatherServiceoperation- the operation name e.g getWeatherrequestEvent- the associated cancelled 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
-
-