public class NameResource extends SynchronizationResource
This class provides the implementation for named synchronized resources.
com.ibm.cics.server.API
for general restrictions on using the JCICS API.
,
Serialized FormConstructor and Description |
---|
NameResource()
Construct a default NameResource.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getDescription, setDescription
public NameResource()
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 taskLengthErrorException
- 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 resourcejava.lang.NullPointerException
- if the resource name is missingpublic void tryEnqueue() throws ResourceUnavailableException, LengthErrorException
ResourceUnavailableException
- the resource is locked by
another taskLengthErrorException
- the name of the resource is too long