Class ThreadSpecificObject<T>
java.lang.Object
org.glassfish.hk2.utilities.general.ThreadSpecificObject<T>
This ties the given object with the thread upon
which this object is created
This class can be used as the key in a hashSet if the
incoming object can be used as the key in a hashSet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the incoming object bound to the thread idlong
Gets the thread on which this object was createdint
hashCode()
-
Field Details
-
incoming
-
tid
private final long tid -
hash
private final int hash
-
-
Constructor Details
-
ThreadSpecificObject
-
-
Method Details
-
getThreadIdentifier
public long getThreadIdentifier()Gets the thread on which this object was created- Returns:
- The thread on which this object was created
-
getIncomingObject
Gets the incoming object bound to the thread id- Returns:
- The incoming object bound to the thread id
-
hashCode
public int hashCode() -
equals
-