Interface IBuyBookService

  • All Known Implementing Classes:
    BuyBookService

    public interface IBuyBookService
    The buy book service is provided by the seller and used by the buyer.
    • Method Detail

      • callForProposal

        IFuture<java.lang.Integer> callForProposal​(java.lang.String title)
        Ask the seller for a a quote on a book.
        Parameters:
        title - The book title.
        Returns:
        The price.
      • acceptProposal

        IFuture<java.lang.Void> acceptProposal​(java.lang.String title,
                                               int price)
        Buy a book
        Parameters:
        title - The book title.
        price - The price to pay.
        Returns:
        A future indicating if the transaction was successful.