Package org.graffiti.event
Class TransactionAdapter
java.lang.Object
org.graffiti.event.TransactionAdapter
- All Implemented Interfaces:
EventListener
,TransactionListener
public class TransactionAdapter extends Object implements TransactionListener
Adapter for the TransactionListener interface, providing default
empty implementation. Useful, given you don't need all interface methods.
- Since:
- 2.7.0
- Author:
- D. Garkov
-
Constructor Summary
Constructors Constructor Description TransactionAdapter()
-
Method Summary
Modifier and Type Method Description void
transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)
Called when a transaction has stopped.void
transactionStarted(TransactionEvent e)
Called when a transaction has started.
-
Constructor Details
-
TransactionAdapter
public TransactionAdapter()
-
-
Method Details
-
transactionFinished
public void transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)Description copied from interface:TransactionListener
Called when a transaction has stopped.
The classTransactionHashMap
merges duplicateAttributeEvent
s. In case the Attribute path for the sameAttributable
is not equal, detailed information about Attribute path is lost. Instead a genericAttributeEvent
containing just theAttributable
is in the list of changed Objects (seeTransactionEvent
).
In case no detailed information about an Attribute change is available, your code should completely re-process the affectedAttributable
.- Specified by:
transactionFinished
in interfaceTransactionListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-
transactionStarted
Description copied from interface:TransactionListener
Called when a transaction has started.- Specified by:
transactionStarted
in interfaceTransactionListener
- Parameters:
e
- the EdgeEvent detailing the changes.
-