public final class AepTransactionStageEvent extends Event
This event is dispatched to notify an application when a stage has been reached in a transaction commit workflow.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AepTransactionStageEvent.ICommitContext
Represents the context of an ongoing transaction commit.
|
static class |
AepTransactionStageEvent.TransactionStage
Lists the various transaction stages
|
count, head, next, prev| Modifier and Type | Method and Description |
|---|---|
static AepTransactionStageEvent |
create(AepTransactionStageEvent.ICommitContext context,
AepTransactionStageEvent.TransactionStage stage)
Create a new (initialized) transaction stage event.
|
static Event |
create(Properties props)
Create a new (uninitialized) transaction stage event.
|
AepTransactionStageEvent.ICommitContext |
getCommitContext()
Get the commit context.
|
AepTransactionStageEvent.TransactionStage |
getStage()
Get the transaction stage represented by this event
|
boolean |
getSuspend()
Get whether an event is marked to suspend a transaction.
|
void |
setSuspend(boolean val)
Set whether the transaction should be suspended.
|
String |
toString()
Get a string representation of the object
|
acquire, dispose, getAcknowledger, getAttachment, getDelay, getDispatchTime, getInstanceNumber, getOfferTs, getPollTs, getPool, getRemainingTime, getScheduledTime, getSource, getType, init, isEndOfBatch, isHandled, owners, referenceTracker, setAcknowledger, setAttachment, setDelay, setDispatchTime, setEndOfBatch, setHandled, setPool, setScheduledTime, setSourcecount, insertAfter, insertBefore, isLinked, next, previous, unlink, wipepublic static Event create(Properties props)
This method instantiates a new transaction stage event object. The method is for use by the event factory to instantiate new transaction stage events. The method should not be used directly by the user since the method bypasses any event pooling i.e. it creates a new transaction stage event object even if there are eligible event objects available in the event type's pool.
public static AepTransactionStageEvent create(AepTransactionStageEvent.ICommitContext context, AepTransactionStageEvent.TransactionStage stage)
context - The transaction commit context.
This method instantiates and initializes a transaction stage event. The method uses the event factory to instantiate a new transaction stage event (the factory recycles objects through the event type's object pool is configured for the type) and then initializes it with the supplied parameters.
public final AepTransactionStageEvent.ICommitContext getCommitContext()
public final AepTransactionStageEvent.TransactionStage getStage()
public final void setSuspend(boolean val)
IllegalStateException - Thrown if this method is invoked on an event
representing a stage other than the Start stageAn application should invoke this method in case it wishes for the transaction represented by this event to be suspended when the event dispatch call returns to the AEP engine. If set to suspend, the application needs to resume the transaction commit via the AepEngine.resumeCommit method.
public final boolean getSuspend()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.