public class FailoverEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
FO_BEGIN
indicates that failover has detected a lost connection and failover is starting.
|
static int |
FO_END
indicates successful completion of failover.
|
static int |
FO_ERROR
indicates that failover was temporarily unsuccessful, but it gives the application the opportunity
to handle the error and retry failover.
|
Constructor and Description |
---|
FailoverEvent(java.lang.Object source,
java.lang.Exception e)
Constructs a FailoverEvent.
|
FailoverEvent(java.lang.Object source,
int type)
Constructs a FailoverEvent.
|
Modifier and Type | Method and Description |
---|---|
int |
getEventType() |
java.lang.Exception |
getException()
returns the Exception that was the reason of FO_ERROR.
|
public static final int FO_BEGIN
public static final int FO_END
public static final int FO_ERROR
public FailoverEvent(java.lang.Object source, int type)
public FailoverEvent(java.lang.Object source, java.lang.Exception e)
source
- The object on which the Event initially occurred.e
- the Exception occurred during the try of restore the Connection.java.lang.IllegalArgumentException
- if source is null.
The set event type is FO_ERROR.FO_ERROR
public int getEventType()
public java.lang.Exception getException()
FO_ERROR
copyright by i-net software