com.ibm.cics.server
Class AddressResource

java.lang.Object
  extended bycom.ibm.cics.server.API
      extended bycom.ibm.cics.server.SynchronizationResource
          extended bycom.ibm.cics.server.AddressResource
All Implemented Interfaces:
java.io.Serializable

public class AddressResource
extends SynchronizationResource
implements java.io.Serializable

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.

Version:
1.2
Author:
John Colgrave
See Also:
Serialized Form

Constructor Summary
AddressResource()
          Construct a default AddressResource.
 
Method Summary
 void dequeue()
           
 void enqueue()
           
 byte[] getAddress()
          Return the address used for the synchronization resource.
 void setAddress(byte[] address)
          Sets the synchronization address
 void tryEnqueue()
           
 
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

AddressResource

public AddressResource()
Construct a default AddressResource.

Method Detail

dequeue

public void dequeue()

enqueue

public void enqueue()
             throws ResourceUnavailableException
Throws:
ResourceUnavailableException

getAddress

public byte[] getAddress()
Return the address used for the synchronization resource.

Returns:
the synchronization address

setAddress

public void setAddress(byte[] address)
Sets the synchronization address

Parameters:
address - the synchronization address

tryEnqueue

public void tryEnqueue()
                throws ResourceUnavailableException
Throws:
ResourceUnavailableException