Pricing

public class Pricing

Singleton for looking up the GE prices of items, using the Runescape Wiki API (Runelite). This class uses a cache to store all the prices in memory and updates the cache periodically.

Functions

getLastSuccessfulUpdateMillis
Link copied to clipboard
final static Long getLastSuccessfulUpdateMillis()
Represents the last time the local pricing cache was updated.
lookupPrice
Link copied to clipboard
final static Optional<IntegerlookupPrice(Integer itemId)
Looks up the price of the given itemId.
setLastSuccessfulUpdateMillis
Link copied to clipboard
final static Unit setLastSuccessfulUpdateMillis(Long lastSuccessfulUpdateMillis)

Properties

INSTANCE
Link copied to clipboard
public final static Pricing INSTANCE
lastSuccessfulUpdateMillis
Link copied to clipboard
private static Long lastSuccessfulUpdateMillis
Represents the last time the local pricing cache was updated.