Package graphql.execution
Class ExecutionId
- java.lang.Object
-
- graphql.execution.ExecutionId
-
@PublicApi public class ExecutionId extends java.lang.Object
This opaque identifier is used to identify a unique query execution
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static ExecutionIdfrom(java.lang.String id)Create an identifier from the given stringstatic ExecutionIdgenerate()Create an unique identifier from the given stringinthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
generate
public static ExecutionId generate()
Create an unique identifier from the given string- Returns:
- a query execution identifier
-
from
public static ExecutionId from(java.lang.String id)
Create an identifier from the given string- Parameters:
id- the string to wrap- Returns:
- a query identifier
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-