|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCoServerUnitIDHandler
This interface defines methods to handle a function unit received by a 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)
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean checkUnitID(JCoServerContext serverCtx, JCoUnitIdentifier unitIdentifier)
serverCtx
- server context describes the server which gets the callunitIdentifier
- unit identifier
void 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 identifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |