public class NameResource extends SynchronizationResource
com.ibm.cics.server.API
for general restrictions on using the JCICS API.
,
Serialized FormConstructor and Description |
---|
NameResource()
Construct a default NameResource.
|
NameResource(java.lang.String name)
Construct a NameResource with a specific name
|
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
getCICSServerApiVersion
public NameResource()
public NameResource(java.lang.String name)
name
- The name of the CICS resourcejava.lang.NullPointerException
- if the resource name is missingpublic 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