public interface GroupCache
Modifier and Type | Method and Description |
---|---|
void |
evict(AccountGroup.UUID groupUuid,
AccountGroup.Id groupId,
AccountGroup.NameKey groupName) |
void |
evictAfterRename(AccountGroup.NameKey oldName) |
java.util.Optional<InternalGroup> |
get(AccountGroup.Id groupId)
Looks up an internal group by its ID.
|
java.util.Optional<InternalGroup> |
get(AccountGroup.NameKey name)
Looks up an internal group by its name.
|
java.util.Optional<InternalGroup> |
get(AccountGroup.UUID groupUuid)
Looks up an internal group by its UUID.
|
void |
onCreateGroup(AccountGroup group)
Notify the cache that a new group was constructed.
|
java.util.Optional<InternalGroup> get(AccountGroup.Id groupId)
groupId
- the ID of the internal groupOptional
of the internal group, or an empty Optional
if no internal
group with this ID exists on this server or an error occurred during lookupjava.util.Optional<InternalGroup> get(AccountGroup.NameKey name)
name
- the name of the internal groupOptional
of the internal group, or an empty Optional
if no internal
group with this name exists on this server or an error occurred during lookupjava.util.Optional<InternalGroup> get(AccountGroup.UUID groupUuid)
groupUuid
- the UUID of the internal groupOptional
of the internal group, or an empty Optional
if no internal
group with this UUID exists on this server or an error occurred during lookupvoid onCreateGroup(AccountGroup group) throws java.io.IOException
java.io.IOException
void evict(AccountGroup.UUID groupUuid, AccountGroup.Id groupId, AccountGroup.NameKey groupName) throws java.io.IOException
java.io.IOException
void evictAfterRename(AccountGroup.NameKey oldName) throws java.io.IOException
java.io.IOException