Event Listener API
The Traffic Manager SDK provides the following interface and is implemented by custom processors to receive Processor Events.
package com.mashery.trafficmanager.event.listener; import com.mashery.trafficmanager.event.model.TrafficEvent; /*** Event listener interface which is implemented by listeners which wish to handle Traffic events. Traffic events will be delivered via this callback synchronously to handlers implementing the interface. The implementers of this interface subscribe to events via annotations. E.g. Processor events need to handle events by using annotations in the com.mashery.proxy.sdk.event.processor.annotation */ public interface TrafficEventListener { /*** The event is delivered to this API @param event*/ void handleEvent(TrafficEvent event); }
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.