@ SuppressWarnings ( "unused" ) public final void onEventMainThread ( @ Nullable final ChronosOperationResult < ? > operationResult ) { if ( operationResult == null ) { //somehow the bus delivered us a null object, it should be ignored return ; } final int operationId = operationResult . getId ( ) ; DeliveryMode deliveryMode = null ; if ( ! RunningOperationStorage . getInstance ( ) . isOperationCancelled ( operationId ) ) { if ( mTaggedRequests . containsValue ( operationId ) ) { deliveryMode = DeliveryMode . NORMAL ; } else if ( mUntaggedRequests . contains ( operationResult . getId ( ) ) ) { mUntaggedRequests . remove ( Integer . valueOf ( operationId ) ) ; deliveryMode = DeliveryMode . NORMAL ; } else if ( operationResult . isBroadcast ( ) ) { deliveryMode = DeliveryMode . BROADCAST ; } } if ( deliveryMode != null ) { final OperationDelivery < ? > operationDelivery = new OperationDelivery <> ( operationResult , deliveryMode ) ; logd ( "operation delivery: " + operationDelivery ) ; onOperationFinished ( operationDelivery ) ; } }
This method is used to listening to results stream and operate with them . User should never call this method manually .