protected static enum DBSynchronizer.SqlExceptionHandler extends java.lang.Enum<DBSynchronizer.SqlExceptionHandler>
DBSynchronizer.processEvents(List)| Enum Constant and Description |
|---|
CLEANUP
close the current connection
|
IGNORE
ignore the exception and continue to process other events in the current
batch
|
IGNORE_BREAK_LOOP
ignore the exception and break the current batch of events being
processed
|
REFRESH
create a new database connection since the current one is no longer
usable
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
breakTheLoop()
Returns true if processing for the current batch of events has to be
terminated for the current exception.
|
abstract void |
execute(DBSynchronizer synchronizer)
execute an action specified by different enumeration values after an
unexpected exception is received by
DBSynchronizer.processEvents(List) |
static DBSynchronizer.SqlExceptionHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DBSynchronizer.SqlExceptionHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DBSynchronizer.SqlExceptionHandler IGNORE
public static final DBSynchronizer.SqlExceptionHandler IGNORE_BREAK_LOOP
public static final DBSynchronizer.SqlExceptionHandler REFRESH
public static final DBSynchronizer.SqlExceptionHandler CLEANUP
public static DBSynchronizer.SqlExceptionHandler[] values()
for (DBSynchronizer.SqlExceptionHandler c : DBSynchronizer.SqlExceptionHandler.values()) System.out.println(c);
public static DBSynchronizer.SqlExceptionHandler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract void execute(DBSynchronizer synchronizer)
DBSynchronizer.processEvents(List)public boolean breakTheLoop()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.