public Dispatchable getDispatchable ( int clientId ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getDispatchable" , "" + clientId ) ; AbstractFirstLevelMapEntry firstLevelEntry = null ; if ( idToFirstLevelEntryMap . containsKey ( clientId ) ) { firstLevelEntry = ( AbstractFirstLevelMapEntry ) idToFirstLevelEntryMap . get ( clientId ) ; } final Dispatchable result ; if ( firstLevelEntry == null ) { result = null ; } else if ( firstLevelEntry . isLocalTransaction ( ) ) { result = ( ( LocalFirstLevelMapEntry ) firstLevelEntry ) . getDispatchable ( ) ; } else { result = ( ( GlobalFirstLevelMapEntry ) firstLevelEntry ) . getEnlistedDispatchable ( ) ; } if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getDispatchable" , result ) ; return result ; }
Obtains a dispatchable for the specified client side transaction ID . The dispatchable returned will either correspond to an in - flight local transaction or an inflight enlisted SIXAResource . If there is no corresponding dispatchable in the table the a value of null is returned .