Appia Documentation

net.sf.appia.protocols.fifo
Class AckEvent

java.lang.Object
  extended by net.sf.appia.core.Event
      extended by net.sf.appia.core.events.SendableEvent
          extended by net.sf.appia.protocols.fifo.AckEvent
All Implemented Interfaces:
java.lang.Cloneable

public class AckEvent
extends SendableEvent

Class AckEvent extends SendableEvent and is intended to send explicit (not piggybacked) acknowledgments of messages.

Author:
Hugo Miranda
See Also:
FifoSession, Event, SendableEvent

Field Summary
 
Fields inherited from class net.sf.appia.core.events.SendableEvent
dest, message, source
 
Fields inherited from class net.sf.appia.core.Event
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
 
Constructor Summary
AckEvent()
          The empty constructor.
AckEvent(Channel c, Session gen, java.lang.Object dest, java.lang.Object source)
          This constructor creates an acknowledge based on a model event.
 
Method Summary
 
Methods inherited from class net.sf.appia.core.events.SendableEvent
cloneEvent, detachFromMemory, finalize, getMessage, setChannel, setMessage
 
Methods inherited from class net.sf.appia.core.Event
asyncGo, currentSession, debug, getChannel, getDir, getPriority, getSchedulerData, getSource, getSourceSession, go, init, isAccepted, popSession, setDir, setPriority, setSchedulerData, setSource, setSourceSession
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AckEvent

public AckEvent(Channel c,
                Session gen,
                java.lang.Object dest,
                java.lang.Object source)
         throws AppiaEventException
This constructor creates an acknowledge based on a model event. dest and source fields are switched, direction is inverted. channel is copied from the model and generator is obtained from the session pointer. The sequence number to be confirmed is sent on the Message. This constructor initializes the event.

Parameters:
c - The event received by FifoSession that triggered the acknowledgment.
gen - The session creating the event.
dest - destination of the ack
source - source of the ack
Throws:
AppiaEventException
See Also:
Session, FifoSession

AckEvent

public AckEvent()
The empty constructor. Required for dynamic creation of instances.


Appia Documentation

COPYRIGHT 2006-2009, University of Lisbon and INESC-ID
For updates and related information please see Appia Home Page
Send questions, sugestions or remarks to the appia-users mailing list