/** * @return the latest notification Id logged by the HMS * @throws Exception when an error occurs when talking to the HMS client */ public long getCurrentNotificationId() throws Exception { CurrentNotificationEventId eventId; try { eventId = getHmsClient().getCurrentNotificationEventId(); } catch (Exception e) { close(); throw e; } if (eventId != null && eventId.isSetEventId()) { return eventId.getEventId(); } return SentryConstants.EMPTY_NOTIFICATION_ID; }
response = getHmsClient().getNextNotification(lastEventId, maxEvents, filter); } catch (Exception e) { close();