public abstract class JPAEvent extends Object
JPAEvent class is the base for all JPA events in Ambari. Although
this class could inherit from AmbariEvent, the publishers for
AmbariEvent instances use an asynchronous model. With JPA, we want a
synchronous publication model in order to ensure that events are handled
within the scope of the method invoking them.| Modifier and Type | Class and Description |
|---|---|
static class |
JPAEvent.JPAEventType
The
JPAEvent.JPAEventType defines the type of JPA event. |
| Modifier and Type | Field and Description |
|---|---|
protected JPAEvent.JPAEventType |
m_eventType
The concrete event's type.
|
| Constructor and Description |
|---|
JPAEvent(JPAEvent.JPAEventType eventType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JPAEvent.JPAEventType |
getType()
Gets the type of
JPAEvent. |
String |
toString() |
protected final JPAEvent.JPAEventType m_eventType
public JPAEvent(JPAEvent.JPAEventType eventType)
eventType - the type of event (not null).public JPAEvent.JPAEventType getType()
JPAEvent.null).Copyright © 2022 Apache Software Foundation. All rights reserved.