Class StorkObservation
java.lang.Object
io.smallrye.stork.api.observability.StorkObservation
-
Constructor Summary
ConstructorsConstructorDescriptionStorkObservation(String serviceName, String serviceDiscoveryType, String serviceSelectionType, StorkEventHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionfailure()intbooleanisDone()booleanvoidonServiceDiscoveryFailure(Throwable throwable) voidonServiceDiscoverySuccess(List<ServiceInstance> instances) voidonServiceSelectionFailure(Throwable throwable) voidonServiceSelectionSuccess(long id)
-
Constructor Details
-
StorkObservation
public StorkObservation(String serviceName, String serviceDiscoveryType, String serviceSelectionType, StorkEventHandler handler)
-
-
Method Details
-
onServiceDiscoverySuccess
-
onServiceDiscoveryFailure
-
onServiceSelectionSuccess
public void onServiceSelectionSuccess(long id) -
onServiceSelectionFailure
-
isDone
public boolean isDone() -
getOverallDuration
-
getServiceDiscoveryDuration
-
getServiceSelectionDuration
-
getServiceName
-
getServiceDiscoveryType
-
getServiceSelectionType
-
getDiscoveredInstancesCount
public int getDiscoveredInstancesCount() -
failure
-
isServiceDiscoverySuccessful
public boolean isServiceDiscoverySuccessful()
-