Project JXTA

net.jxta.endpoint
Class OutgoingMessageEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bynet.jxta.endpoint.OutgoingMessageEvent
All Implemented Interfaces:
Serializable

public class OutgoingMessageEvent
extends EventObject

An event which provides notification of the the transmission status of an outgoing message. The source of the event is the Message object.

See Also:
Serialized Form

Field Summary
static OutgoingMessageEvent OVERFLOW
           
static OutgoingMessageEvent SUCCESS
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
OutgoingMessageEvent()
          Create an Outgoing Message Event with a dummy src (message is not specified because the event is a constant).
OutgoingMessageEvent(Message source)
          Create an Outgoing Message Event.
OutgoingMessageEvent(Message source, Throwable failure)
          Create an Outgoing Message Event.
 
Method Summary
 Throwable getFailure()
          Get the failure associated with this event, if any.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUCCESS

public static final OutgoingMessageEvent SUCCESS

OVERFLOW

public static final OutgoingMessageEvent OVERFLOW
Constructor Detail

OutgoingMessageEvent

public OutgoingMessageEvent()
Create an Outgoing Message Event with a dummy src (message is not specified because the event is a constant).


OutgoingMessageEvent

public OutgoingMessageEvent(Message source)
Create an Outgoing Message Event.

Parameters:
source - the message for which the event is occuring.

OutgoingMessageEvent

public OutgoingMessageEvent(Message source,
                            Throwable failure)
Create an Outgoing Message Event.

Parameters:
source - The message for which the event is occuring.
failure - The failure associated with this event.
Method Detail

getFailure

public Throwable getFailure()
Get the failure associated with this event, if any.

Returns:
the Throwable associated with the failure, if any. null if there was no associated failure.

JXTA J2SE