Package com.sun.enterprise.resource
Class ResourceState
- java.lang.Object
-
- com.sun.enterprise.resource.ResourceState
-
public class ResourceState extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classResourceState.TwiceBusyException
-
Constructor Summary
Constructors Constructor Description ResourceState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceState.TwiceBusyExceptiongetBusyStackException()Gets an exception with a stack trace of when the resource was previously set to not busy.longgetTimestamp()booleanisBusy()booleanisEnlisted()booleanisFree()booleanisUnenlisted()voidsetBusy(boolean busy)voidsetEnlisted(boolean enlisted)StringtoString()voidtouchTimestamp()
-
-
-
Method Detail
-
isEnlisted
public boolean isEnlisted()
-
isUnenlisted
public boolean isUnenlisted()
-
isFree
public boolean isFree()
-
setEnlisted
public void setEnlisted(boolean enlisted)
-
isBusy
public boolean isBusy()
-
setBusy
public void setBusy(boolean busy)
-
getBusyStackException
public ResourceState.TwiceBusyException getBusyStackException()
Gets an exception with a stack trace of when the resource was previously set to not busy.- Returns:
- a TwiceBusyException used to create a MultiException when setBusy is set to false twice
- See Also:
ConnectionPool.resourceClosed(com.sun.enterprise.resource.ResourceHandle)
-
getTimestamp
public long getTimestamp()
-
touchTimestamp
public void touchTimestamp()
-
-