com.neeve.aep.event
Class AepOutOfOrderSendCommitCompletionAlertEvent

java.lang.Object
  extended by com.neeve.util.UtlListElement
      extended by com.neeve.event.Event
          extended by com.neeve.event.alert.AlertEvent
              extended by com.neeve.aep.event.AepOutOfOrderSendCommitCompletionAlertEvent
All Implemented Interfaces:
IAlertEvent, IEvent, UtlPool.Item<Event>, UtlReferenceTracker.HasReferenceTracker

public final class AepOutOfOrderSendCommitCompletionAlertEvent
extends AlertEvent

Event alerting an AEP application of an out-of-order send commit completion.

Threading:
This class is safe for concurrent access by multiple threads.

This event is dispatched to an application of an alert triggered by an out-of-order send commit completion.


Field Summary
 
Fields inherited from class com.neeve.util.UtlListElement
count, head, next, prev
 
Method Summary
static AepOutOfOrderSendCommitCompletionAlertEvent create(long completedCommitTxnId, long firstReleasedCommitTxnId, long lastReleasedCommitTxnId, long firstIncompleteCommitTxnId)
          Create a new (initialized) out-of-order send commit completion alert event.
static Event create(Properties props)
          Create a new (uninitialized) out-of-order send commit completion alert event.
 long getCompletedCommitTxnId()
           
 long getFirstIncompleteCommitTxnId()
           
 long getFirstReleasedCommitTxnId()
           
 long getLastReleasedCommitTxnId()
           
 String toString()
          Get a string representation of the object
 
Methods inherited from class com.neeve.event.alert.AlertEvent
getBackingMessage, getEventTime, getTriggeringMessage, setBackingMessage
 
Methods inherited from class com.neeve.event.Event
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, setSource
 
Methods inherited from class com.neeve.util.UtlListElement
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.neeve.event.IEvent
acquire, dispose, getAcknowledger, getAttachment, getDelay, getDispatchTime, getInstanceNumber, getRemainingTime, getScheduledTime, getSource, getType, isEndOfBatch, isHandled, owners, setAcknowledger, setAttachment, setDelay, setEndOfBatch, setHandled, setSource
 
Methods inherited from interface com.neeve.util.UtlReferenceTracker.HasReferenceTracker
referenceTracker
 

Method Detail

create

public static Event create(Properties props)
Create a new (uninitialized) out-of-order send commit completion alert event.

This method instantiates a new out-of-order send commit completion alert event object. The method is for use by the event factory to instantiate new out-of-order send commit completion alert events. The method should not be used directly by the user since the method bypasses any event pooling i.e. it creates a new out-of-order send commit completion alert event object even if there are eligible event objects available in the event type's pool.


create

public static AepOutOfOrderSendCommitCompletionAlertEvent create(long completedCommitTxnId,
                                                                 long firstReleasedCommitTxnId,
                                                                 long lastReleasedCommitTxnId,
                                                                 long firstIncompleteCommitTxnId)
Create a new (initialized) out-of-order send commit completion alert event.

Parameters:
completedCommitTxnId - The id of the transaction containing the commit that completed.
firstReleasedCommitTxnId - The id of the transaction of the send commit released first from the send commit pipeline by the processing of the completed commit.
lastReleasedCommitTxnId - The id of the transaction of the send commit released last from the send commit pipeline by the processing of the completed commit.
firstIncompleteCommitTxnId - The id of the transaction of the first incomplete send commit in the send commit pipeline at the end of the processing of the completed send commit.

This method instantiates and initializes a out-of-order send commit completion alert event. The method uses the event factory to instantiate a new out-of-order send commit completion alert 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.


getCompletedCommitTxnId

public final long getCompletedCommitTxnId()
Returns:
The id of the transaction containing the commit that completed.
Threading:
This method is safe for concurrent access by multiple threads.

getFirstReleasedCommitTxnId

public final long getFirstReleasedCommitTxnId()
Returns:
The id of the transaction of the send commit released first from the send commit pipeline by the processing of the completed commit. A value of -1 indicates that no commit was released from the pipeline
Threading:
This method is safe for concurrent access by multiple threads.

getLastReleasedCommitTxnId

public final long getLastReleasedCommitTxnId()
Returns:
The id of the transaction of the send commit released last from the send commit pipeline by the processing of the completed commit. A value of -1 indicates that no commit was released from the pipeline
Threading:
This method is safe for concurrent access by multiple threads.

getFirstIncompleteCommitTxnId

public final long getFirstIncompleteCommitTxnId()
Returns:
The id of the transaction of the first incomplete send commit in the send commit pipeline after the completion of the processing of the completed commit.
Threading:
This method is safe for concurrent access by multiple threads.

toString

public String toString()
Get a string representation of the object

Overrides:
toString in class AlertEvent


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.