Package io.micronaut.http.client.netty
Record Class BlockHint
java.lang.Object
java.lang.Record
io.micronaut.http.client.netty.BlockHint
- Record Components:
blockedThread
- Thread that is blockednext
- Next node in the linked list of blocked threads
Information about what threads are blocked waiting for a request to complete. This is used to
detect deadlocks when the user does a
Note: This class is public for use in micronaut-oracle-cloud.
BlockingHttpClient
on the
event loop.Note: This class is public for use in micronaut-oracle-cloud.
- Since:
- 4.0.0
- Author:
- Jonas Konrad
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockedThread
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.next()
Returns the value of thenext
record component.final String
toString()
Returns a string representation of this record class.static BlockHint
-
Constructor Details
-
BlockHint
Creates an instance of aBlockHint
record class.- Parameters:
blockedThread
- the value for theblockedThread
record componentnext
- the value for thenext
record component
-
-
Method Details
-
willBlockThisThread
-
combine
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
blockedThread
Returns the value of theblockedThread
record component.- Returns:
- the value of the
blockedThread
record component
-
next
Returns the value of thenext
record component.- Returns:
- the value of the
next
record component
-