public final class PrefetchingUserDAO extends Object implements UserDAO, Describable
Constructor and Description |
---|
PrefetchingUserDAO(EventDAO events) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(DescriptionWriter writer)
Write this class's description to a sink.
|
LongSet |
getUserIds()
Get all known user IDs.
|
static Function<EventDAO,UserDAO> |
wrapper()
A function that wraps an event DAO in a prefetching user DAO.
|
@Inject public PrefetchingUserDAO(EventDAO events)
public static Function<EventDAO,UserDAO> wrapper()
UserDAO
, it is returned unwrapped.public LongSet getUserIds()
UserDAO
getUserIds
in interface UserDAO
public void describeTo(DescriptionWriter writer)
Describable
describeTo
in interface Describable
writer
- The description writer to use.