org.systinet.wasp.wsrm.feb2005.policy
Class AcknowledgementIntervalAssertion

java.lang.Object
  extended byorg.systinet.wasp.policy.PolicyElement
      extended byorg.systinet.wasp.policy.PolicyAssertion
          extended byorg.systinet.wasp.wsrm.feb2005.policy.AcknowledgementIntervalAssertion

public class AcknowledgementIntervalAssertion
extends PolicyAssertion

Acknowledgements can be sent on return messages or sent stand alone. In the case that a return message is not available to send an acknowledgement a destination may wait for up to the acknowledgement interval before sending a stand alone acknowledgement. If there are no unacknowledged messages, the destination may choose not to send an acknowledgement.

This assertion does not alter the formulation of messages or acknowledgements as transmitted. Its purpose is to communicate the timing of acknowledgements so that the source may tune appropriately. It does not alter the meaning of the AckRequested directive.

Component:
WS Reliable Messaging Implementation

Constructor Summary
AcknowledgementIntervalAssertion(long acknowledgementInterval, PolicyUsage usage)
          Creates this assertion with given acknowledgement interval.
AcknowledgementIntervalAssertion(javax.xml.transform.Source content)
          Loads this assertion from given XML source.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getAcknowledgementInterval()
          Gets acknowledgement interval of this assertion.
 javax.xml.transform.Source getContent()
          Gets XML content of this assertion.
 int hashCode()
           
 
Methods inherited from class org.systinet.wasp.policy.PolicyElement
getParentElement, getPreference, getUsage, readStandardAttributes, setParentElement, setPreference, setUsage, writeStandardAttributes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcknowledgementIntervalAssertion

public AcknowledgementIntervalAssertion(javax.xml.transform.Source content)
                                 throws PolicyException
Loads this assertion from given XML source.

Parameters:
content - XML source
Throws:
PolicyException - when an error occurs during the assertion loading

AcknowledgementIntervalAssertion

public AcknowledgementIntervalAssertion(long acknowledgementInterval,
                                        PolicyUsage usage)
Creates this assertion with given acknowledgement interval.

Parameters:
acknowledgementInterval - acknowledgement interval in milliseconds
usage - PolicyUsage.OBSERVED or PolicyUsage.IGNORED
Method Detail

getAcknowledgementInterval

public long getAcknowledgementInterval()
Gets acknowledgement interval of this assertion.

Returns:
the acknowledgement interval in milliseconds

getContent

public javax.xml.transform.Source getContent()
                                      throws PolicyException
Gets XML content of this assertion.

Specified by:
getContent in class PolicyAssertion
Returns:
the XML content source
Throws:
PolicyException - when an error occurs

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)