Class AbstractServiceRequestEvent

    • Constructor Detail

      • AbstractServiceRequestEvent

        public AbstractServiceRequestEvent​(java.lang.String origin,
                                           java.lang.String service,
                                           java.lang.String operation)
        Create a new AbstractServiceRequestEvent
        Parameters:
        origin - the origin of the event
        service - the service name e.g. 'WeatherService'
        operation - the operation name e.g. 'getWeather'
    • Method Detail

      • withRequest

        public AbstractServiceRequestEvent withRequest​(java.lang.Object request)
        Add a request object to this event
        Parameters:
        request - the request object
        Returns:
        the 'this' for method chaining
      • getRequest

        public java.lang.Object getRequest()
        Get the request object
        Specified by:
        getRequest in interface ServiceRequestEvent
        Returns:
        the request object