Package org.onosproject.net.meter
Interface MeterContext
- 
public interface MeterContextA context permitting the application to be notified when the meter installation has been successful. 
- 
- 
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidonError(MeterRequest op, MeterFailReason reason)Invoked when error is encountered while installing a meter.default voidonSuccess(MeterRequest op)Invoked on successful installation of the meter. 
 - 
 
- 
- 
Method Detail
- 
onSuccess
default void onSuccess(MeterRequest op)
Invoked on successful installation of the meter.- Parameters:
 op- a meter
 
- 
onError
default void onError(MeterRequest op, MeterFailReason reason)
Invoked when error is encountered while installing a meter.- Parameters:
 op- a meterreason- the reason why it failed
 
 - 
 
 -