Class OperationInvocationDispatcher
-
- All Implemented Interfaces:
public class OperationInvocationDispatcherHelper class to dispatch incoming operation invoked report parts to ScoTransaction objects.
-
-
Method Summary
Modifier and Type Method Description synchronized voiddispatchReport(OperationInvokedReport report)Accepts a report and dispatches its report parts to registered SCO transactions. synchronized voidregisterTransaction(ScoTransactionImpl<out AbstractSetResponse> transaction)Registers an SCO transaction and delivers buffered reports immediately. -
-
Method Detail
-
dispatchReport
synchronized void dispatchReport(OperationInvokedReport report)
Accepts a report and dispatches its report parts to registered SCO transactions.
By using registerTransaction, SCO transactions can be registered to get notified on incoming operation invoked report parts. If an SCO transaction is not registered by the time the first report pops up, reports are going to be buffered. Buffered "dead" reports are sanitized on each incoming report (see AWAITING_TRANSACTION_TIMEOUT).
- Parameters:
report- the report to process.
-
registerTransaction
synchronized void registerTransaction(ScoTransactionImpl<out AbstractSetResponse> transaction)
Registers an SCO transaction and delivers buffered reports immediately.
Once a final report is registered, the allocated heap used for the transaction is erased.
- Parameters:
transaction- the transaction to
-
-
-
-