Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.oaext.osn
Class OsnSendRouter

java.lang.Object
  extended by oracle.apps.fnd.applcore.oaext.osn.OsnSendRouter

public class OsnSendRouter
extends java.lang.Object

The OsnSendRouter contains the logic that will ensure that only one send to OSN will occur in a multi-eo scenario. The primary EO and each secondary EO will be registered with the router and which ever EO is commited first will call the sendToOsn API and will lock out all other EO's from sending even though each of them potentially will try and send as they have been committed.

Since:
11.1.1.7.1
Version:
$Header: atgpf/applcore/applications/Common/Model/src/oracle/apps/fnd/applcore/oaext/osn/OsnSendRouter.java /st_atgpf_pt-11.1.1.7.0/1 2013/01/11 06:59:54 pacross Exp $

Constructor Summary
OsnSendRouter(OAEntityImpl primaryEO)
          Default Constructor.
 
Method Summary
 void addSecondaryEO(OAEntityImpl secondaryEO)
          Add a secondary EO to the list of entities that can route a send to OSN via the primary EO.
 void sendToOsn(OAEntityImpl triggeringEntity, byte preCommitEntityState, byte preCommitPostState)
          Route a send to OSN via the primary EO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsnSendRouter

public OsnSendRouter(OAEntityImpl primaryEO)
Default Constructor.

Parameters:
primaryEO - the EO to be used when making requests to send to OSN. Primary EO must not be null.
Method Detail

addSecondaryEO

public void addSecondaryEO(OAEntityImpl secondaryEO)
Add a secondary EO to the list of entities that can route a send to OSN via the primary EO.

Parameters:
secondaryEO - the secondary EO to regisiter.

sendToOsn

public void sendToOsn(OAEntityImpl triggeringEntity,
                      byte preCommitEntityState,
                      byte preCommitPostState)
Route a send to OSN via the primary EO. If the send has already occurred from another EO then this request will be ignored.

Parameters:
triggeringEntity - the entity that is triggering the send to OSN.
preCommitEntityState - the state the entity was in before the final commit occurred.
preCommitPostState - the post state of the entity before the final commit occurred.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.