/** * Give the highest eventId that is is present is the specified store * * @param the * storeId * @return the highest event present in the store, >= 0, or <tt>-1</tt> if this manager is already closed. * @throws IOException * in case of I/O problems accessing the store(s). */ public long getHighestEventID(long storeID) throws IOException { if (m_closed.get()) { return -1L; } FeedbackStore store = getLastStore(storeID); try { return store.getLastEventID(); } finally { closeIfNeeded(store); } }
closeIfNeeded(stores);