/** * Called by the Activity when a message has been passed back to the * application * * @param clientHandle identifier for the client which received the message * @param id identifier for the MQTT message * @return {@link Status} */ public Status acknowledgeMessageArrival(String clientHandle, String id) { if (messageStore.discardArrived(clientHandle, id)) { return Status.OK; } else { return Status.ERROR; } }
/** * Called by the Activity when a message has been passed back to the * application * * @param clientHandle identifier for the client which received the message * @param id identifier for the MQTT message * @return {@link Status} */ public Status acknowledgeMessageArrival(String clientHandle, String id) { if (messageStore.discardArrived(clientHandle, id)) { return Status.OK; } else { return Status.ERROR; } }
/** * Called by the Activity when a message has been passed back to the * application * * @param clientHandle identifier for the client which received the message * @param id identifier for the MQTT message * @return {@link Status} */ public Status acknowledgeMessageArrival(String clientHandle, String id) { if (messageStore.discardArrived(clientHandle, id)) { return Status.OK; } else { return Status.ERROR; } }