Interface ModifiedBookReceiver<COOKIE>


  • public interface ModifiedBookReceiver<COOKIE>
    • Method Detail

      • onBook

        void onBook​(ConcurrentBook<COOKIE> book,
                    boolean justCreated)
        Is called under lock on this particular book.
        Parameters:
        book - book
        justCreated - true if this instance of the book is just created by the current thread. Note that a race condition on justCreated parameter is possible. To prevent racing use an additional lock on a common object.