public abstract class AbstractServiceCancellationEvent extends AbstractServiceEvent implements ServiceCancellationEvent
ServiceEvent.Typedata, origin| Constructor and Description |
|---|
AbstractServiceCancellationEvent(java.lang.String origin,
java.lang.String service,
java.lang.String operation,
ServiceRequestEvent requestEvent)
Constructor for a AbstractServiceCancellationEvent
|
| Modifier and Type | Method and Description |
|---|---|
ServiceRequestEvent |
getRequest()
Get the associated request event
|
AbstractServiceCancellationEvent |
withRequest(ServiceRequestEvent request)
Add a request object to this event
|
getOperation, getService, getTypegetData, getOrigin, withDatapublic AbstractServiceCancellationEvent(java.lang.String origin,
java.lang.String service,
java.lang.String operation,
ServiceRequestEvent requestEvent)
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 Eventpublic AbstractServiceCancellationEvent withRequest(ServiceRequestEvent request)
request - the downstream service request objectpublic ServiceRequestEvent getRequest()
getRequest in interface ServiceCancellationEventServiceRequestEvent