Interface Bazaar.PriorityOverlapCallBack<T>

  • Type Parameters:
    T - the type of product create by this Bazaar
    Enclosing interface:
    Bazaar<T>

    public static interface Bazaar.PriorityOverlapCallBack<T>
    If two or more Vendors make the same bid, the registered Bazaar.PriorityOverlapCallBack will be notified, an arbitrary Vendor with the same Bid will create the product in this case.
    Author:
    jonas
    • Method Detail

      • priorityOverlap

        void priorityOverlap​(Vendor<? extends T> winner,
                             Vendor<? extends T> overlapping)
        Will be called if two Vendors do the same bid.
        Parameters:
        winner - The Vendor who will win and create the product
        overlapping - Another Vendor with the same bid, but who will not create the product