com.ibm.cics.server
Class TDQ
- java.lang.Object
-
- com.ibm.cics.server.API
-
- com.ibm.cics.server.Resource
-
- com.ibm.cics.server.RemotableResource
-
- com.ibm.cics.server.TDQ
-
- All Implemented Interfaces:
- java.io.Serializable
public class TDQ extends RemotableResource
This Class provides the Java implementation of CICS Transient Data Queues (TDQs).
- See Also:
, Serialized Formcom.ibm.cics.server.APIfor general restrictions on using the JCICS API.- Since CICS TS version:
- 1.3
- Since package version:
- 1.0
-
-
Constructor Summary
Constructors Constructor and Description TDQ()Construct a TDQ bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddelete()Delete a Transient Data Queue.voidreadData(DataHolder holder)Read data from a TDQ.voidreadDataConditional(DataHolder holder)Read data from a TDQ.voidwriteData(byte[] data)Write data to a TDQ.voidwriteString(java.lang.String data)Write a String to a TDQ.-
Methods inherited from class com.ibm.cics.server.RemotableResource
getSysId, setSysId
-
Methods inherited from class com.ibm.cics.server.Resource
getDescription, getName, setDescription, setName
-
-
-
-
Constructor Detail
-
TDQ
public TDQ()
Construct a TDQ bean.- Since CICS TS version:
- 1.3
- Since package version:
- 1.0
-
-
Method Detail
-
delete
public void delete() throws IOErrorException, ISCInvalidRequestException, NotAuthorisedException, InvalidQueueIdException, InvalidSystemIdExceptionDelete a Transient Data Queue.- Throws:
IOErrorException- An IOERR occurred.ISCInvalidRequestException- An ISCINVREQ occurred.NotAuthorisedException- A NOTAUTH occurred.InvalidQueueIdException- A QIDERR occurred.InvalidSystemIdException- A SYSIDERR occurred.- Since CICS TS version:
- 1.3
- Since package version:
- 1.0
-
readData
public void readData(DataHolder holder) throws IOErrorException, ISCInvalidRequestException, LengthErrorException, NotAuthorisedException, NotOpenException, InvalidQueueIdException, QueueZeroException, InvalidSystemIdException
Read data from a TDQ. If the queue is already being used for output, the task will be suspended.- Parameters:
holder- The holder for the data to be returned.- Throws:
IOErrorException- An IOERR occurred.ISCInvalidRequestException- An ISCINVREQ occurred.LengthErrorException- A LENGERR occurred.NotAuthorisedException- A NOTAUTH occurred.NotOpenException- A NOTOPEN occurred.InvalidQueueIdException- A QIDERR occurred.QueueZeroException- A QZERO occurred.InvalidSystemIdException- A SYSIDERR occurred.- Since CICS TS version:
- 1.3
- Since package version:
- 1.0
-
readDataConditional
public void readDataConditional(DataHolder holder) throws IOErrorException, ISCInvalidRequestException, LengthErrorException, NotAuthorisedException, NotOpenException, QueueBusyException, InvalidQueueIdException, QueueZeroException, InvalidSystemIdException
Read data from a TDQ. If the queue is already being used for output, a QueueBusyException will be thrown.- Parameters:
holder- The holder for the data to be returned.- Throws:
IOErrorException- An IOERR occurred.ISCInvalidRequestException- An ISCINVREQ occurred.LengthErrorException- A LENGERR occurred.NotAuthorisedException- A NOTAUTH occurred.NotOpenException- A NOTOPEN occurred.QueueBusyException- A QBUSY occurred.InvalidQueueIdException- A QIDERR occurred.QueueZeroException- A QZERO occurred.InvalidSystemIdException- A SYSIDERR occurred.- Since CICS TS version:
- 1.3
- Since package version:
- 1.0
-
writeData
public void writeData(byte[] data) throws IOErrorException, ISCInvalidRequestException, LengthErrorException, NoSpaceException, NotAuthorisedException, NotOpenException, InvalidSystemIdExceptionWrite data to a TDQ.- Parameters:
data- A Java byte array containing the data to be written to the TDQ.- Throws:
IOErrorException- An IOERR occurred.ISCInvalidRequestException- An ISCINVREQ occurred.LengthErrorException- A LENGERR occurred.NoSpaceException- A NOSPACE occurred.NotAuthorisedException- A NOTAUTH occurred.NotOpenException- A NOTOPEN occurred.InvalidSystemIdException- A SYSIDERR occurred.- Since CICS TS version:
- 1.3
- Since package version:
- 1.0
-
writeString
public void writeString(java.lang.String data) throws IOErrorException, ISCInvalidRequestException, LengthErrorException, NoSpaceException, NotAuthorisedException, NotOpenException, InvalidSystemIdExceptionWrite a String to a TDQ.- Parameters:
data- the String data to write to the TDQ- Throws:
IOErrorException- An IOERR occurred.ISCInvalidRequestException- An ISCINVREQ occurred.LengthErrorException- A LENGERR occurred.NoSpaceException- A NOSPACE occurred.NotAuthorisedException- A NOTAUTH occurred.NotOpenException- A NOTOPEN occurred.InvalidSystemIdException- A SYSIDERR occurred.- Since CICS TS version:
- 5.1
- Since package version:
- 1.401.0
-
-