ReplicatedPermissions.java
943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* This file is part of LiteLoader.
* Copyright (C) 2012-16 Adam Mummery-Smith
* All Rights Reserved.
*/
package com.mumfrey.liteloader.permissions;
/**
* Represents a set of permissions assigned by a remote authority such as a
* server.
*
* @author Adam Mummery-Smith
*/
public interface ReplicatedPermissions extends Permissions
{
/**
* Get the time that this object was received from the remote authority
*/
public abstract long getReplicationTime();
/**
* Return true if this permissions object is valid (within cache period)
*/
public abstract boolean isValid();
/**
* Forcibly invalidate this permission container, forces update at the next
* opportunity.
*/
public abstract void invalidate();
/**
* Temporarily forces the permissions object to be valid to prevent repeated
* revalidation.
*/
public abstract void notifyRefreshPending();
}