Class TimeSpanMarker
java.lang.Object
org.elasticsearch.xpack.esql.action.TimeSpanMarker
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()name()voidstart()voidstop()voidSafely stops the marker only if it was started but not yet stopped.org.elasticsearch.core.TimeValuetimeSpan()org.elasticsearch.core.TimeValuetimeTook()toString()booleanReturns true if this marker was started (regardless of whether it was stopped).
-
Method Details
-
name
-
timeSpan
-
start
public void start() -
stop
public void stop() -
stopIfStarted
public void stopIfStarted()Safely stops the marker only if it was started but not yet stopped. This is useful in error paths where we don't know which markers were started. -
timeTook
public org.elasticsearch.core.TimeValue timeTook() -
wasStarted
public boolean wasStarted()Returns true if this marker was started (regardless of whether it was stopped). -
timeSinceStarted
public org.elasticsearch.core.TimeValue timeSinceStarted() -
equals
-
hashCode
public int hashCode() -
toString
-