public final class Notifications extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Notifications.LifecycleEvent
Enumerations of the standard lifecycle events.
|
Modifier and Type | Field and Description |
---|---|
static String |
LIFE_CYCLE
The field in which the notification of the lifecycle is stored.
|
static String |
LIFE_CYLCLE
Deprecated.
(since 0.10.1) Use
LIFE_CYCLE instead. |
Constructor and Description |
---|
Notifications() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsLifecycleEvent(Record notification,
Notifications.LifecycleEvent event)
Determine whether or not the given notification contains the given lifecycle event.
|
static List |
getLifecycleEvents(Record notification)
Get all lifecycle events from the given record.
|
static void |
notifyBeginTransaction(Command command)
Notify the given command that a transaction has begun.
|
static void |
notifyCommitTransaction(Command command)
Notify the given command that a transaction has been committed.
|
static void |
notifyRollbackTransaction(Command command)
Notify the given command that a transaction has been rolled back.
|
static void |
notifyShutdown(Command command)
Notify the given command that a shutdown command has been issued.
|
static void |
notifyStartSession(Command command)
Notify the given command that a session has started.
|
public static final String LIFE_CYCLE
@Deprecated public static final String LIFE_CYLCLE
LIFE_CYCLE
instead.public static List getLifecycleEvents(Record notification)
List
of Notifications.LifecycleEvent
enumerations representing all lifecycles stored in the given notification.public static void notifyBeginTransaction(Command command)
command
- The Command
to be notified.public static void notifyCommitTransaction(Command command)
command
- The Command
to be notified.public static void notifyRollbackTransaction(Command command)
command
- The Command
to be notified.public static void notifyShutdown(Command command)
command
- The Command
to be notified.public static void notifyStartSession(Command command)
command
- The Command
to be notified.public static boolean containsLifecycleEvent(Record notification, Notifications.LifecycleEvent event)
notification
- A Record
that represents a notification.event
- A Notifications.LifecycleEvent
enumeration that is to be searched for in the given notification.Copyright © 2013–2015. All rights reserved.