public class LostAuctionTask extends TimerTask
Copyright © Enremmeta LLC 2015. All Rights Reserved.
| Modifier and Type | Field and Description |
|---|---|
private BidInFlightInfo |
bidInfo |
private static Map<String,LostAuctionTask> |
bidsInFlight |
static String |
CANCELLATION_REASON_AUTHORITATIVE_ASSUMED |
static BidInFlightInfo |
CANCELLATION_REASON_AUTHORITATIVE_ASSUMED_INFO |
static String |
CANCELLATION_REASON_AUTHORITATIVE_ERROR |
static BidInFlightInfo |
CANCELLATION_REASON_AUTHORITATIVE_ERROR_INFO |
static String |
CANCELLATION_REASON_AUTHORITATIVE_LOSS |
static BidInFlightInfo |
CANCELLATION_REASON_AUTHORITATIVE_LOSS_INFO |
private String |
key |
| Constructor and Description |
|---|
LostAuctionTask(BidInFlightInfo bidInfo,
String key) |
| Modifier and Type | Method and Description |
|---|---|
static BidInFlightInfo |
cancelLostAuctionTask(String key,
BidInFlightInfo replacement)
Cancel the task - usually because we won the bid; but sometimes because we got another
explicit notification that we lost, so we don't need the timeout.
|
void |
run() |
static void |
scheduleLostAuctionTask(BidInFlightInfo info,
String key,
long winTimeout)
Assume a bid is lost when
winTimeout seconds have
passed. |
String |
toString() |
cancel, scheduledExecutionTimepublic static final String CANCELLATION_REASON_AUTHORITATIVE_LOSS
public static final String CANCELLATION_REASON_AUTHORITATIVE_ERROR
public static final String CANCELLATION_REASON_AUTHORITATIVE_ASSUMED
public static final BidInFlightInfo CANCELLATION_REASON_AUTHORITATIVE_LOSS_INFO
public static final BidInFlightInfo CANCELLATION_REASON_AUTHORITATIVE_ERROR_INFO
public static final BidInFlightInfo CANCELLATION_REASON_AUTHORITATIVE_ASSUMED_INFO
private final BidInFlightInfo bidInfo
private final String key
private static final Map<String,LostAuctionTask> bidsInFlight
public LostAuctionTask(BidInFlightInfo bidInfo, String key)
public static BidInFlightInfo cancelLostAuctionTask(String key, BidInFlightInfo replacement) throws Lot49Exception
Lot49ExceptionExchangeAdapter.trueWinOnNurlOrImpression()public static void scheduleLostAuctionTask(BidInFlightInfo info, String key, long winTimeout) throws Lot49Exception
winTimeout seconds have
passed.info - info of bid that we lostkey - keywinTimeout - timeoutLot49Exception