public class SubjectSourceCacheItem extends Object implements Serializable
Constructor and Description |
---|
SubjectSourceCacheItem() |
Modifier and Type | Method and Description |
---|---|
boolean |
expired()
if this is expired
|
boolean |
expiredHelper(int timeToLiveSeconds,
int timeToLiveNotFoundSeconds)
if this is expired
|
long |
getLastAccessed()
millis since 1970 last accessed from cache or system of record
|
long |
getLastRetrieved()
millis since 1970 last retrieved from system of record
|
int |
getNumberOfTimesAccessed()
number of times this has been accessed total
|
int |
getNumberOfTimesAccessedSinceLastRetrieved()
number of time this has been accessed since last retrieved
|
int |
getNumberOfTimesRetrieved() |
Subject |
getSubject()
the subject
|
static int |
minUseInCycleToAutoRefresh()
if the subject has been used at least this many times in the last cycle then auto refresh the subject
or else just remove the subject
set to 0 to refresh all
|
boolean |
needsToBeResolved() |
boolean |
needsToBeResolvedHelper(int timeToLiveSeconds,
int timeToLiveSecondsPercentageToResolveSubjectsIfNecessary,
int timeToLiveNotFoundSeconds,
int timeToLiveNotFoundPercentageToResolveSubjectsIfNecessary,
int minUseInCycleToAutoRefresh)
if this is needs to be resolved
|
void |
setLastAccessed(long lastAccessed1)
millis since 1970 last accessed from cache or system of record
|
void |
setLastRetrieved(long lastRetrieved1)
millis since 1970 last retrieved from system of record
|
void |
setNumberOfTimesAccessed(int numberOfTimesAccessed1)
number of times this has been accessed total
|
void |
setNumberOfTimesAccessedSinceLastRetrieved(int numberOfTimesAccessedSinceLastRetrieved1)
number of time this has been accessed since last retrieved
|
void |
setNumberOfTimesRetrieved(int numberOfTimesRetrieved1)
number of times this has been accessed since last retrieved
|
void |
setSubject(Subject subject1)
the subject
|
static int |
timeToLiveNotFoundPercentageToResolveSubjectsIfNecessary()
Resolve subjects again if necessary, after this percent of time to live for not found subjects.
|
static int |
timeToLiveNotFoundSeconds() |
static int |
timeToLiveSeconds() |
static int |
timeToLiveSecondsPercentageToResolveSubjectsIfNecessary()
Resolve subjects again if necessary, after this percent of time to live
|
public int getNumberOfTimesRetrieved()
public void setNumberOfTimesRetrieved(int numberOfTimesRetrieved1)
numberOfTimesRetrieved1
- the numberOfTimesRetrieved to setpublic int getNumberOfTimesAccessed()
public void setNumberOfTimesAccessed(int numberOfTimesAccessed1)
numberOfTimesAccessed1
- the numberOfTimesAccessed to setpublic boolean expired()
public static int timeToLiveNotFoundSeconds()
public static int timeToLiveSeconds()
public static int timeToLiveSecondsPercentageToResolveSubjectsIfNecessary()
public static int timeToLiveNotFoundPercentageToResolveSubjectsIfNecessary()
public static int minUseInCycleToAutoRefresh()
public boolean needsToBeResolved()
public boolean needsToBeResolvedHelper(int timeToLiveSeconds, int timeToLiveSecondsPercentageToResolveSubjectsIfNecessary, int timeToLiveNotFoundSeconds, int timeToLiveNotFoundPercentageToResolveSubjectsIfNecessary, int minUseInCycleToAutoRefresh)
timeToLiveSeconds
- timeToLiveSecondsPercentageToResolveSubjectsIfNecessary
- timeToLiveNotFoundSeconds
- timeToLiveNotFoundPercentageToResolveSubjectsIfNecessary
- minUseInCycleToAutoRefresh
- public boolean expiredHelper(int timeToLiveSeconds, int timeToLiveNotFoundSeconds)
timeToLiveSeconds
- timeToLiveNotFoundSeconds
- public Subject getSubject()
public void setSubject(Subject subject1)
subject1
- the subject to setpublic long getLastRetrieved()
public void setLastRetrieved(long lastRetrieved1)
lastRetrieved1
- the lastRetrieved to setpublic long getLastAccessed()
public void setLastAccessed(long lastAccessed1)
lastAccessed1
- the lastAccessed to setpublic int getNumberOfTimesAccessedSinceLastRetrieved()
public void setNumberOfTimesAccessedSinceLastRetrieved(int numberOfTimesAccessedSinceLastRetrieved1)
numberOfTimesAccessedSinceLastRetrieved1
- the numberOfTimesAccessedSinceLastRetrieved to setCopyright © 2016 Internet2. All rights reserved.