public class TransactionApplicationEvent extends ApplicationEvent
TransactionApplicationEvent is an implementation of ApplicationEvent which is fired during
a transaction.Instant,
LocalDateTime,
ApplicationEvent,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected static String |
TIMESTAMP_PATTERN |
source| Constructor and Description |
|---|
TransactionApplicationEvent(Object source)
Constructs a new instance of
TransactionApplicationEvent initialized with the given source
of this transaction event. |
TransactionApplicationEvent(Object source,
String details)
Constructs a new instance of
TransactionApplicationEvent initialized with the given source
of this transaction event and details describing the transaction event. |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getDetails() |
LocalDateTime |
getTimestampAsLocalDateTime() |
String |
getTimestampAsString() |
String |
getTimestampAsString(String pattern) |
static TransactionApplicationEvent |
of(Object source)
Factory method used to construct a new instance of
TransactionApplicationEvent initialized with
the given source. |
String |
toString() |
TransactionApplicationEvent |
with(String details) |
getTimestampgetSourceprotected static final String TIMESTAMP_PATTERN
public TransactionApplicationEvent(Object source)
TransactionApplicationEvent initialized with the given source
of this transaction event.source - Object defined as the source of this TransactionApplicationEvent.public TransactionApplicationEvent(Object source, String details)
TransactionApplicationEvent initialized with the given source
of this transaction event and details describing the transaction event.source - Object defined as the source of this TransactionApplicationEvent.details - String describing the transaction event.public static TransactionApplicationEvent of(Object source)
TransactionApplicationEvent initialized with
the given source.source - Object defined as the source of this TransactionApplicationEvent.TransactionApplicationEvent.TransactionApplicationEvent(Object)public LocalDateTime getTimestampAsLocalDateTime()
public String getTimestampAsString()
public String toString()
toString in class EventObjectpublic TransactionApplicationEvent with(String details)
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.