@Test public void num2processingState() { assertEquals("DONE", Entry.num2processingStateText(Entry.ProcessingState.DONE)); assertEquals("READ", Entry.num2processingStateText(Entry.ProcessingState.READ)); assertEquals("READ_COMPLETE", Entry.num2processingStateText(Entry.ProcessingState.READ_COMPLETE)); assertEquals("MUTATE", Entry.num2processingStateText(Entry.ProcessingState.MUTATE)); assertEquals("LOAD", Entry.num2processingStateText(Entry.ProcessingState.LOAD)); assertEquals("COMPUTE", Entry.num2processingStateText(Entry.ProcessingState.COMPUTE)); assertEquals("REFRESH", Entry.num2processingStateText(Entry.ProcessingState.REFRESH)); assertEquals("EXPIRY", Entry.num2processingStateText(Entry.ProcessingState.EXPIRY)); assertEquals("EXPIRY_COMPLETE", Entry.num2processingStateText(Entry.ProcessingState.EXPIRY_COMPLETE)); assertEquals("WRITE", Entry.num2processingStateText(Entry.ProcessingState.WRITE)); assertEquals("WRITE_COMPLETE", Entry.num2processingStateText(Entry.ProcessingState.WRITE_COMPLETE)); assertEquals("STORE", Entry.num2processingStateText(Entry.ProcessingState.STORE)); assertEquals("STORE_COMPLETE", Entry.num2processingStateText(Entry.ProcessingState.STORE_COMPLETE)); assertEquals("NOTIFY", Entry.num2processingStateText(Entry.ProcessingState.NOTIFY)); assertEquals("PINNED", Entry.num2processingStateText(Entry.ProcessingState.PINNED)); assertEquals("LAST", Entry.num2processingStateText(Entry.ProcessingState.LAST)); }
public static String num2processingStateText(int ps) { switch (ps) { case ProcessingState.DONE: return "DONE"; case ProcessingState.READ: return "READ"; case ProcessingState.READ_COMPLETE: return "READ_COMPLETE"; case ProcessingState.MUTATE: return "MUTATE"; case ProcessingState.LOAD: return "LOAD"; case ProcessingState.LOAD_COMPLETE: return "LOAD_COMPLETE"; case ProcessingState.COMPUTE: return "COMPUTE"; case ProcessingState.REFRESH: return "REFRESH"; case ProcessingState.EXPIRY: return "EXPIRY"; case ProcessingState.EXPIRY_COMPLETE: return "EXPIRY_COMPLETE"; case ProcessingState.WRITE: return "WRITE"; case ProcessingState.WRITE_COMPLETE: return "WRITE_COMPLETE"; case ProcessingState.STORE: return "STORE"; case ProcessingState.STORE_COMPLETE: return "STORE_COMPLETE"; case ProcessingState.NOTIFY: return "NOTIFY"; case ProcessingState.PINNED: return "PINNED"; case ProcessingState.EVICT: return "EVICT"; case ProcessingState.LOAD_ASYNC: return "LOAD_ASYNC"; case ProcessingState.WRITE_ASYNC: return "WRITE_ASYNC"; case ProcessingState.LAST: return "LAST"; } return "UNKNOWN"; }
Entry extends CompactEntry<K, V> implements CacheEntry<K, V>, StorageEntry, ExaminationEntry<K, V> { public static String num2processingStateText(int ps) { switch (ps) { case ProcessingState.DONE: return "DONE"; case ProcessingState.READ: return "READ"; case ProcessingState.READ_COMPLETE: return "READ_COMPLETE"; case ProcessingState.MUTATE: return "MUTATE"; case ProcessingState.LOAD: return "LOAD"; case ProcessingState.LOAD_COMPLETE: return "LOAD_COMPLETE"; case ProcessingState.COMPUTE: return "COMPUTE"; case ProcessingState.REFRESH: return "REFRESH"; case ProcessingState.EXPIRY: return "EXPIRY"; case ProcessingState.EXPIRY_COMPLETE: return "EXPIRY_COMPLETE"; case ProcessingState.WRITE: return "WRITE"; case ProcessingState.WRITE_COMPLETE: return "WRITE_COMPLETE"; case ProcessingState.STORE: return "STORE"; case ProcessingState.STORE_COMPLETE: return "STORE_COMPLETE"; case ProcessingState.NOTIFY: return "NOTIFY"; case ProcessingState.PINNED: return "PINNED"; case ProcessingState.EVICT: return "EVICT"; case ProcessingState.LOAD_ASYNC: return "LOAD_ASYNC"; case ProcessingState.WRITE_ASYNC: return "WRITE_ASYNC"; case ProcessingState.LAST: return "LAST"; } return "UNKNOWN"; } }
Entry extends CompactEntry<K, V> implements CacheEntry<K, V>, StorageEntry, ExaminationEntry<K, V> { public static String num2processingStateText(int ps) { switch (ps) { case ProcessingState.DONE: return "DONE"; case ProcessingState.READ: return "READ"; case ProcessingState.READ_COMPLETE: return "READ_COMPLETE"; case ProcessingState.MUTATE: return "MUTATE"; case ProcessingState.LOAD: return "LOAD"; case ProcessingState.LOAD_COMPLETE: return "LOAD_COMPLETE"; case ProcessingState.COMPUTE: return "COMPUTE"; case ProcessingState.REFRESH: return "REFRESH"; case ProcessingState.EXPIRY: return "EXPIRY"; case ProcessingState.EXPIRY_COMPLETE: return "EXPIRY_COMPLETE"; case ProcessingState.WRITE: return "WRITE"; case ProcessingState.WRITE_COMPLETE: return "WRITE_COMPLETE"; case ProcessingState.STORE: return "STORE"; case ProcessingState.STORE_COMPLETE: return "STORE_COMPLETE"; case ProcessingState.NOTIFY: return "NOTIFY"; case ProcessingState.PINNED: return "PINNED"; case ProcessingState.EVICT: return "EVICT"; case ProcessingState.LOAD_ASYNC: return "LOAD_ASYNC"; case ProcessingState.WRITE_ASYNC: return "WRITE_ASYNC"; case ProcessingState.LAST: return "LAST"; } return "UNKNOWN"; } Entry(K key, int hashCode);  Entry(); }
Entry extends CompactEntry<K, V> implements CacheEntry<K, V>, StorageEntry, ExaminationEntry<K, V> { public static String num2processingStateText(int ps) { switch (ps) { case ProcessingState.DONE: return "DONE"; case ProcessingState.READ: return "READ"; case ProcessingState.READ_COMPLETE: return "READ_COMPLETE"; case ProcessingState.MUTATE: return "MUTATE"; case ProcessingState.LOAD: return "LOAD"; case ProcessingState.LOAD_COMPLETE: return "LOAD_COMPLETE"; case ProcessingState.COMPUTE: return "COMPUTE"; case ProcessingState.REFRESH: return "REFRESH"; case ProcessingState.EXPIRY: return "EXPIRY"; case ProcessingState.EXPIRY_COMPLETE: return "EXPIRY_COMPLETE"; case ProcessingState.WRITE: return "WRITE"; case ProcessingState.WRITE_COMPLETE: return "WRITE_COMPLETE"; case ProcessingState.STORE: return "STORE"; case ProcessingState.STORE_COMPLETE: return "STORE_COMPLETE"; case ProcessingState.NOTIFY: return "NOTIFY"; case ProcessingState.PINNED: return "PINNED"; case ProcessingState.EVICT: return "EVICT"; case ProcessingState.LOAD_ASYNC: return "LOAD_ASYNC"; case ProcessingState.WRITE_ASYNC: return "WRITE_ASYNC"; case ProcessingState.LAST: return "LAST"; } return "UNKNOWN"; } Entry(K key, int hashCode);  Entry(); CacheEntry<K, V> getTempCacheEntry(); void setRefreshTime(long t); @Override long getRefreshTime(); @SuppressWarnings("deprecation") @Override @Deprecated long getLastModification(); static String num2processingStateText(int ps); int getProcessingState(); boolean checkAndSwitchProcessingState(int ps0, int ps); void startProcessing(int ps, EntryAction action); void nextProcessingStep(int ps); void processingDone(EntryAction action); void processingDone(); long getNextRefreshTime(); void setNextRefreshTime(long nextRefreshTime); void ensureAbort(boolean finished); boolean isProcessing(); void waitForProcessing(); boolean isGettingRefresh(); final void removedFromList(); boolean isRemovedFromReplacementList(); boolean isNotYetInsertedInReplacementList(); Entry shortCircuit(); final boolean isVirgin(); final boolean isDataAvailable(); final boolean isDataAvailableOrProbation(); final boolean hasFreshData(InternalClock t); void setExpiredState(); boolean isExpiredState(); void setGone(); final boolean isGone(); final boolean needsTimeCheck(); boolean isHot(); void setHot(boolean f); void setCompressedWeight(int v); int getCompressedWeight(); long getValueExpiryTime(); @Override long getCreatedOrUpdated(); @Override long getEntryExpiryTime(); String toString(HeapCache c); @Override String toString(); TimerTask getTask(); X getPiggyBack(Class<X> type); void setTask(TimerTask v); void setEntryAction(EntryAction action); EntryAction getEntryAction(); void resetEntryAction(); void setSuppressedLoadExceptionInformation(ExceptionInformation w); void resetSuppressedLoadExceptionInformation(); ExceptionInformation getSuppressedLoadExceptionInformation(); void setRefreshProbationNextRefreshTime(long nrt); long getRefreshProbationNextRefreshTime(); static void removeFromList(Entry e); static void insertInList(Entry head, Entry e); static E insertIntoTailCyclicList(E head, E e); static E removeFromCyclicList(E head, E e); static Entry removeFromCyclicList(Entry e); static int getCyclicListEntryCount(Entry e); static boolean checkCyclicListIntegrity(Entry e); }
Entry extends CompactEntry<K, V> implements CacheEntry<K, V>, StorageEntry, ExaminationEntry<K, V> { public static String num2processingStateText(int ps) { switch (ps) { case ProcessingState.DONE: return "DONE"; case ProcessingState.READ: return "READ"; case ProcessingState.READ_COMPLETE: return "READ_COMPLETE"; case ProcessingState.MUTATE: return "MUTATE"; case ProcessingState.LOAD: return "LOAD"; case ProcessingState.LOAD_COMPLETE: return "LOAD_COMPLETE"; case ProcessingState.COMPUTE: return "COMPUTE"; case ProcessingState.REFRESH: return "REFRESH"; case ProcessingState.EXPIRY: return "EXPIRY"; case ProcessingState.EXPIRY_COMPLETE: return "EXPIRY_COMPLETE"; case ProcessingState.WRITE: return "WRITE"; case ProcessingState.WRITE_COMPLETE: return "WRITE_COMPLETE"; case ProcessingState.STORE: return "STORE"; case ProcessingState.STORE_COMPLETE: return "STORE_COMPLETE"; case ProcessingState.NOTIFY: return "NOTIFY"; case ProcessingState.PINNED: return "PINNED"; case ProcessingState.EVICT: return "EVICT"; case ProcessingState.LOAD_ASYNC: return "LOAD_ASYNC"; case ProcessingState.WRITE_ASYNC: return "WRITE_ASYNC"; case ProcessingState.LAST: return "LAST"; } return "UNKNOWN"; } Entry(K key, int hashCode);  Entry(); CacheEntry<K, V> getTempCacheEntry(); void setRefreshTime(long t); @Override long getRefreshTime(); @SuppressWarnings("deprecation") @Override @Deprecated long getLastModification(); static String num2processingStateText(int ps); int getProcessingState(); boolean checkAndSwitchProcessingState(int ps0, int ps); void startProcessing(int ps, EntryAction action); void nextProcessingStep(int ps); void processingDone(EntryAction action); void processingDone(); long getNextRefreshTime(); void setNextRefreshTime(long nextRefreshTime); void ensureAbort(boolean finished); boolean isProcessing(); void waitForProcessing(); boolean isGettingRefresh(); final void removedFromList(); boolean isRemovedFromReplacementList(); boolean isNotYetInsertedInReplacementList(); Entry shortCircuit(); final boolean isVirgin(); final boolean isDataAvailable(); final boolean isDataAvailableOrProbation(); final boolean hasFreshData(InternalClock t); void setExpiredState(); boolean isExpiredState(); void setGone(); final boolean isGone(); final boolean needsTimeCheck(); boolean isHot(); void setHot(boolean f); void setCompressedWeight(int v); int getCompressedWeight(); long getValueExpiryTime(); @Override long getCreatedOrUpdated(); @Override long getEntryExpiryTime(); String toString(HeapCache c); @Override String toString(); TimerTask getTask(); X getPiggyBack(Class<X> type); void setTask(TimerTask v); void setEntryAction(EntryAction action); EntryAction getEntryAction(); void resetEntryAction(); void setSuppressedLoadExceptionInformation(ExceptionInformation w); void resetSuppressedLoadExceptionInformation(); ExceptionInformation getSuppressedLoadExceptionInformation(); void setRefreshProbationNextRefreshTime(long nrt); long getRefreshProbationNextRefreshTime(); static void removeFromList(Entry e); static void insertInList(Entry head, Entry e); static E insertIntoTailCyclicList(E head, E e); static E removeFromCyclicList(E head, E e); static Entry removeFromCyclicList(Entry e); static int getCyclicListEntryCount(Entry e); static boolean checkCyclicListIntegrity(Entry e); static final int EXPIRY_TIME_MIN; static final int DATA_VALID; static final int VIRGIN; static final int READ_NON_VALID; static final int REMOVE_PENDING; static final int ABORTED; static final int EXPIRED; static final int EXPIRED_REFRESH_PENDING; static final int EXPIRED_REFRESHED; static final int GONE; static final int GONE_OTHER; public Entry next; public Entry prev; }