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

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

public class RetransmissionIntervalAssertion
extends PolicyAssertion

A source may optionally specify a base retransmission interval for a sequence. If no acknowledgement has been received for a given message within the interval, the source will retransmit the message. The retransmission interval may be modified at the source's discretion during the lifetime of the sequence. This assertion does not alter the formulation of messages as transmitted, only the timing of their transmission.

Component:
WS Reliable Messaging Implementation

Constructor Summary
RetransmissionIntervalAssertion(long retransmissionInterval, PolicyUsage usage)
          Creates this assertion with given retransmission interval.
RetransmissionIntervalAssertion(javax.xml.transform.Source content)
          Loads this assertion from given XML source.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 javax.xml.transform.Source getContent()
          Gets XML content of this assertion.
 long getRetransmissionInterval()
          Gets retransmission interval 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

RetransmissionIntervalAssertion

public RetransmissionIntervalAssertion(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

RetransmissionIntervalAssertion

public RetransmissionIntervalAssertion(long retransmissionInterval,
                                       PolicyUsage usage)
Creates this assertion with given retransmission interval.

Parameters:
retransmissionInterval - retransmission interval in milliseconds
usage - PolicyUsage.OBSERVED or PolicyUsage.IGNORED
Method Detail

getRetransmissionInterval

public long getRetransmissionInterval()
Gets retransmission interval of this assertion.

Returns:
the retransmission 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)