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 boolean
equals(java.lang.Object o)
static ExecutionId
from(java.lang.String id)
Create an identifier from the given stringstatic ExecutionId
generate()
Create an unique identifier from the given stringint
hashCode()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-