Class TransactionApplicationEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.gemfire.transaction.event.TransactionApplicationEvent
- All Implemented Interfaces:
Serializable
public class TransactionApplicationEvent
extends org.springframework.context.ApplicationEvent
The
TransactionApplicationEvent
is an implementation of ApplicationEvent
which is fired during
a transaction.- Since:
- 2.3.0
- See Also:
-
Instant
LocalDateTime
ApplicationEvent
- Serialized Form
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTransactionApplicationEvent
(Object source) Constructs a new instance ofTransactionApplicationEvent
initialized with the givensource
of this transaction event.TransactionApplicationEvent
(Object source, String details) Constructs a new instance ofTransactionApplicationEvent
initialized with the givensource
of this transaction event anddetails
describing the transaction event. -
Method Summary
Modifier and TypeMethodDescriptiongetTimestampAsString
(String pattern) static TransactionApplicationEvent
Factory method used to construct a new instance ofTransactionApplicationEvent
initialized with the givensource
.toString()
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
TIMESTAMP_PATTERN
- See Also:
-
-
Constructor Details
-
TransactionApplicationEvent
Constructs a new instance ofTransactionApplicationEvent
initialized with the givensource
of this transaction event.- Parameters:
source
-Object
defined as the source of thisTransactionApplicationEvent
.
-
TransactionApplicationEvent
Constructs a new instance ofTransactionApplicationEvent
initialized with the givensource
of this transaction event anddetails
describing the transaction event.- Parameters:
source
-Object
defined as the source of thisTransactionApplicationEvent
.details
-String
describing the transaction event.
-
-
Method Details
-
of
Factory method used to construct a new instance ofTransactionApplicationEvent
initialized with the givensource
.- Parameters:
source
-Object
defined as the source of thisTransactionApplicationEvent
.- Returns:
- a new instance of
TransactionApplicationEvent
. - See Also:
-
getDetails
-
getTimestampAsLocalDateTime
-
getTimestampAsString
-
getTimestampAsString
-
toString
- Overrides:
toString
in classEventObject
-
with
-