Package com.j_spaces.core.fifo
Class FifoWorkerThread
java.lang.Object
java.lang.Thread
com.gigaspaces.internal.utils.concurrent.GSThread
com.j_spaces.core.fifo.FifoWorkerThread
- All Implemented Interfaces:
Runnable
- Since:
- 8.0.4
- Author:
- Niv Ingberg
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CacheManagerprotected booleanprotected booleanprotected Contextprotected final booleanprotected static final org.slf4j.Loggerprotected final Objectprotected final intFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFifoWorkerThread(int num, boolean isNotify, String workerType, CacheManager cacheManager, SpaceEngine engine) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidabstract voidclose()protected NotifyActionTypegetNotifyType(int spaceOperation) protected voidprotected abstract voidprotected voidhandleNotifyRequest(FifoBackgroundRequest rd, NotifyActionType notifyType) protected voidprotected voidperform general non-notifyprotected voidperformTemplateOnEntryNonNotify(IEntryHolder eh, ITemplateHolder template, FifoBackgroundRequest rd) abstract voidabstract voidprotected voidprocessRejectedRequestsToPerform(FifoBackgroundRequest rd, List<FifoBackgroundRequest> rejectedRequestsToPerform) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
_logger
protected static final org.slf4j.Logger _logger -
_threadNum
protected final int _threadNum -
_isNotify
protected final boolean _isNotify -
_cacheManager
-
_shutDown
-
_context
-
_closed
protected boolean _closed -
_closeThread
protected boolean _closeThread
-
-
Constructor Details
-
FifoWorkerThread
protected FifoWorkerThread(int num, boolean isNotify, String workerType, CacheManager cacheManager, SpaceEngine engine)
-
-
Method Details
-
close
public abstract void close() -
positionRequest
-
activateFifoThread
public abstract void activateFifoThread() -
positionAndActivateRequest
-
getNotifyType
-
handleRequest
-
handleNotifyRequest
protected abstract void handleNotifyRequest(FifoBackgroundRequest rd) throws SAException, EntryDeletedException - Throws:
SAExceptionEntryDeletedException
-
handleNotifyRequest
protected void handleNotifyRequest(FifoBackgroundRequest rd, NotifyActionType notifyType) throws EntryDeletedException, SAException - Throws:
EntryDeletedExceptionSAException
-
performTemplateOnEntryNonNotify
protected void performTemplateOnEntryNonNotify(IEntryHolder eh, ITemplateHolder template, FifoBackgroundRequest rd) throws SAException, EntryDeletedException - Throws:
SAExceptionEntryDeletedException
-
performGeneralEntryNonNotify
protected void performGeneralEntryNonNotify(IEntryHolder eh, FifoBackgroundRequest rd) throws SAException, EntryDeletedException perform general non-notify- Throws:
SAExceptionEntryDeletedException
-
processRejectedRequestsToPerform
protected void processRejectedRequestsToPerform(FifoBackgroundRequest rd, List<FifoBackgroundRequest> rejectedRequestsToPerform) throws SAException, EntryDeletedException - Throws:
SAExceptionEntryDeletedException
-
handleNonNotifyRequest
protected void handleNonNotifyRequest(FifoBackgroundRequest rd) throws SAException, EntryDeletedException - Throws:
SAExceptionEntryDeletedException
-