public interface JCoServerUnitIDHandler
JCoServer
.
Applications providing support for transactional scenarios based on bgRFC communication have
to provide a custom implementation for this interface. The instance implementing this
interface has to be set on the server.JCoServer#setUnitIDHandler(JCoServerUnitIDHandler)
Modifier and Type | Method and Description |
---|---|
boolean |
checkUnitID(JCoServerContext serverCtx,
JCoUnitIdentifier unitIdentifier)
This method will be invoked when a bgRFC unit is being sent from an
SAP system.
|
void |
commit(JCoServerContext serverCtx,
JCoUnitIdentifier unitIdentifier)
This method will be called after all RFC function modules belonging to
the concerned unit have been successfully completed.
|
void |
confirmUnitID(JCoServerContext serverCtx,
JCoUnitIdentifier unitIdentifier)
This method will be called after the local transaction has been completed.
|
JCoFunctionUnitState |
getFunctionUnitState(JCoServerContext serverCtx,
JCoUnitIdentifier unitIdentifier)
The method will be invoked if the ABAP side resumes after a failure in bgRFC scheduler.
|
void |
rollback(JCoServerContext serverCtx,
JCoUnitIdentifier unitIdentifier)
This method will be called if an error has occurred in one of the RFC function modules belonging to
the concerned unit.
|
boolean checkUnitID(JCoServerContext serverCtx, JCoUnitIdentifier unitIdentifier)
serverCtx
- server context describes the server which gets the callunitIdentifier
- unit identifiervoid confirmUnitID(JCoServerContext serverCtx, JCoUnitIdentifier unitIdentifier)
serverCtx
- server context describes the server which gets the callunitIdentifier
- unit identifiervoid commit(JCoServerContext serverCtx, JCoUnitIdentifier unitIdentifier)
serverCtx
- server context describes the server which gets the callunitIdentifier
- unit identifiervoid rollback(JCoServerContext serverCtx, JCoUnitIdentifier unitIdentifier)
serverCtx
- server context describes the server which gets the callunitIdentifier
- unit identifierJCoFunctionUnitState getFunctionUnitState(JCoServerContext serverCtx, JCoUnitIdentifier unitIdentifier)
serverCtx
- server context describes the server which gets the callunitIdentifier
- unit identifierCopyright © 2023 SAP. All rights reserved.