Package com.sun.enterprise.resource
Class AssocWithThreadResourceHandle
- java.lang.Object
-
- com.sun.enterprise.resource.ResourceHandle
-
- com.sun.enterprise.resource.AssocWithThreadResourceHandle
-
- All Implemented Interfaces:
ResourceHandle,TransactionalResource
public class AssocWithThreadResourceHandle extends ResourceHandle
ResourceHandle with state related to assoc-with-thread pool- Author:
- Jagadish Ramu
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.resource.ResourceHandle
lock
-
-
Constructor Summary
Constructors Constructor Description AssocWithThreadResourceHandle(Object resource, ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)longgetThreadId()inthashCode()booleanisAssociated()booleanisDirty()voidsetAssociated(boolean flag)voidsetDirty()voidsetThreadId(long threadId)-
Methods inherited from class com.sun.enterprise.resource.ResourceHandle
closeUserConnection, decrementCount, destroyResource, enlistedInTransaction, fillInResourceObjects, getClientSecurityInfo, getComponentInstance, getId, getLastValidated, getListener, getName, getPartition, getResource, getResourceAllocator, getResourceSpec, getResourceState, getShareCount, getSubject, getUsageCount, getUserConnection, getXAResource, hasConnectionErrorOccurred, incrementCount, incrementUsageCount, isBusy, isEnlisted, isEnlistmentSuspended, isMarkedForReclaim, isShareable, isTransactional, markForReclaim, setBusy, setComponentInstance, setConnectionErrorOccurred, setEnlistmentSuspended, setLastValidated, setListener, setPartition, setResourceSpec, setResourceState, setSubject, supportsLazyAssociation, supportsLazyEnlistment, supportsXA, toString
-
-
-
-
Constructor Detail
-
AssocWithThreadResourceHandle
public AssocWithThreadResourceHandle(Object resource, ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info)
-
-
Method Detail
-
isDirty
public boolean isDirty()
-
setDirty
public void setDirty()
-
isAssociated
public boolean isAssociated()
-
setAssociated
public void setAssociated(boolean flag)
-
getThreadId
public long getThreadId()
-
setThreadId
public void setThreadId(long threadId)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classResourceHandle
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classResourceHandle
-
-