Package me.ahoo.cosid.segment
Class SegmentChainId.PrefetchJob
java.lang.Object
me.ahoo.cosid.segment.SegmentChainId.PrefetchJob
- All Implemented Interfaces:
Runnable
,AffinityJob
- Enclosing class:
- SegmentChainId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetJobId()
void
prefetch()
void
run()
void
setHungerTime
(long hungerTime) set hunger time.void
setPrefetchWorker
(PrefetchWorker prefetchWorker) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.ahoo.cosid.segment.concurrent.AffinityJob
affinity, hungry
-
Constructor Details
-
PrefetchJob
-
-
Method Details
-
getJobId
- Specified by:
getJobId
in interfaceAffinityJob
-
setHungerTime
public void setHungerTime(long hungerTime) Description copied from interface:AffinityJob
set hunger time.- Specified by:
setHungerTime
in interfaceAffinityJob
- Parameters:
hungerTime
-TimeUnit.SECONDS
-
getPrefetchWorker
- Specified by:
getPrefetchWorker
in interfaceAffinityJob
-
setPrefetchWorker
- Specified by:
setPrefetchWorker
in interfaceAffinityJob
-
run
public void run() -
prefetch
public void prefetch()
-