Package me.ahoo.cosid.segment.concurrent
Interface AffinityJob
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
SegmentChainId.PrefetchJob
Affinity Job.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
affinity()
getJobId()
default void
hungry()
void
setHungerTime
(long hungerTime) set hunger time.void
setPrefetchWorker
(PrefetchWorker prefetchWorker)
-
Method Details
-
getJobId
String getJobId() -
affinity
-
hungry
default void hungry() -
setHungerTime
void setHungerTime(long hungerTime) set hunger time.- Parameters:
hungerTime
-TimeUnit.SECONDS
-
getPrefetchWorker
PrefetchWorker getPrefetchWorker() -
setPrefetchWorker
-