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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockedThreadrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.next()Returns the value of thenextrecord component.final StringtoString()Returns a string representation of this record class.static BlockHint
-
Constructor Details
-
BlockHint
Creates an instance of aBlockHintrecord class.- Parameters:
blockedThread- the value for theblockedThreadrecord componentnext- the value for thenextrecord 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 theblockedThreadrecord component.- Returns:
- the value of the
blockedThreadrecord component
-
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-