@Deprecated public final class PrefetchingItemDAO extends Object implements ItemDAO, Describable
Item DAO that streams the events to get item information. The item set is fetched and memorized once for each instance of this class.
Constructor and Description |
---|
PrefetchingItemDAO(EventDAO events)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
describeTo(DescriptionWriter writer)
Deprecated.
Write this class’s description to a sink.
|
LongSet |
getItemIds()
Deprecated.
Get all known item IDs.
|
static Function<EventDAO,ItemDAO> |
wrapper()
Deprecated.
A function that wraps an event DAO in a prefetching item DAO.
|
@Inject public PrefetchingItemDAO(EventDAO events)
public static Function<EventDAO,ItemDAO> wrapper()
A function that wraps an event DAO in a prefetching item DAO. If the DAO already implements ItemDAO
, it is returned unwrapped.
public LongSet getItemIds()
ItemDAO
Get all known item IDs.
getItemIds
in interface ItemDAO
public void describeTo(DescriptionWriter writer)
Describable
Write this class’s description to a sink. Anything relevant to this object’s identity should be digested; the idea is that, barring hash collisions, two objects with the same digest are equivalent. Used for things like deterministically generating cache file names.
describeTo
in interface Describable
writer
- The description writer to use.