com.ibm.cics.server

Class AddressResource

  • All Implemented Interfaces:
    java.io.Serializable


    public class AddressResource
    extends SynchronizationResource

    This class provides the implementation of synchronization based on the address of a data area.

    This class is intended for cases where integration with an existing application that uses an address to ENQ. New applications should use the NameResource class.

    As Java does not expose the address of a variable, it is used explicitly as an array of bytes.

    See Also:
    com.ibm.cics.server.API for general restrictions on using the JCICS API., Serialized Form
    Since CICS TS version:
    1.3
    Since package version:
    1.0.0
    • Constructor Detail

      • AddressResource

        public AddressResource()
        Construct a default AddressResource.
        Since CICS TS version:
        1.3
        Since package version:
        1.0.0
    • Method Detail

      • getAddress

        public byte[] getAddress()
        Return the address used for the synchronization resource.
        Returns:
        the synchronization address
        Since CICS TS version:
        1.3
        Since package version:
        1.0.0
      • setAddress

        public void setAddress(byte[] address)
        Sets the synchronization address. The address must be 4 bytes long. Values which are too short will be padded with null bytes, values that are too long will be truncated.
        Parameters:
        address - the synchronization address
        Since CICS TS version:
        1.3
        Since package version:
        1.0.0