/** * Callback to handle a polling request from the CCOW context manager. */ @Override public void ccowPending(CCOWContextManager sender, ContextItems contextItems) { try { ccowTransaction = true; updateCCOWStatus(); String reason = setMarshaledContext(contextItems, false); if (!reason.isEmpty()) { sender.setSurveyResponse(reason.toString()); } } finally { ccowTransaction = false; updateCCOWStatus(); } }
/** * Callback to handle a polling request from the CCOW context manager. */ @Override public void ccowPending(CCOWContextManager sender, ContextItems contextItems) { ccowTransaction = true; updateCCOWStatus(); setMarshaledContext(contextItems, false, response -> { if (response.rejected()) { sender.setSurveyResponse(response.toString()); } ccowTransaction = false; updateCCOWStatus(); }); }