org.lyra.Host
Class LossEvent

java.lang.Object
  extended by org.lyra.Host.LossEvent

public class LossEvent
extends java.lang.Object

Event that is triggered when we have lost a connection. Loosing a connection necessitates telling any other instance that their connection may be affected as well.

Version:
1.0.5, %Revision, 174%, %LastChangedDate, 27/10/12 3:33PM%
Author:
Martin Foster
See Also:
LossListener

Field Summary
private  java.lang.Exception Error
           
private  java.lang.Object Source
           
private  java.lang.Long Timestamp
           
 
Constructor Summary
LossEvent(java.lang.Object source, java.lang.Exception error)
          Primary constructor for the event generated.
 
Method Summary
 java.lang.Object getException()
          The Exception on which the event initially occurred.
 java.lang.Object getSource()
          The object on which the event initially occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Source

private java.lang.Object Source

Timestamp

private java.lang.Long Timestamp

Error

private java.lang.Exception Error
Constructor Detail

LossEvent

public LossEvent(java.lang.Object source,
                 java.lang.Exception error)
Primary constructor for the event generated. Takes the source of the caller and all of the updates that have happened at server level.

Parameters:
source - Source object triggering the event.
error - Exception generated during error.
Method Detail

getSource

public java.lang.Object getSource()
The object on which the event initially occurred.

Returns:
The object on which the Event initially occurred.

getException

public java.lang.Object getException()
The Exception on which the event initially occurred.

Returns:
The exception which triggered this event.