|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.cics.server.API
com.ibm.cics.server.SynchronizationResource
com.ibm.cics.server.NameResource
This class provides the implementation for named synchronized resources.
Constructor Summary | |
---|---|
NameResource()
Construct a default NameResource. |
Method Summary | |
---|---|
void |
dequeue()
Unlock the named resource. |
void |
enqueue()
Attempt to lock the named resource. |
java.lang.String |
getName()
Return the name of the CICS resource. |
void |
setName(java.lang.String name)
Sets the resource name corresponding to this object. |
void |
tryEnqueue()
Attempt to lock the named resource without suspending. |
Methods inherited from class com.ibm.cics.server.SynchronizationResource |
---|
getDescription, setDescription |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NameResource()
Method Detail |
public void dequeue() throws LengthErrorException
LengthErrorException
- the name of the resource is too longpublic void enqueue() throws ResourceUnavailableException, LengthErrorException
ResourceUnavailableException
- the resource is locked by
another task
LengthErrorException
- the name of the resource is too longpublic java.lang.String getName()
public void setName(java.lang.String name) throws java.lang.NullPointerException
name
- the name of the CICS resource
java.lang.NullPointerException
public void tryEnqueue() throws ResourceUnavailableException, LengthErrorException
ResourceUnavailableException
- the resource is locked by
another task
LengthErrorException
- the name of the resource is too long
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |