com.hazelcast.spi.impl.operationexecutor.classic
Class PartitionOperationThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.hazelcast.util.executor.HazelcastManagedThread
          extended by com.hazelcast.spi.impl.operationexecutor.classic.OperationThread
              extended by com.hazelcast.spi.impl.operationexecutor.classic.PartitionOperationThread
All Implemented Interfaces:
Runnable

public final class PartitionOperationThread
extends OperationThread

An OperationThread that executes Operations for a particular partition, e.g. a map.get operation.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PartitionOperationThread(String name, int threadId, ScheduleQueue scheduleQueue, ILogger logger, HazelcastThreadGroup threadGroup, NodeExtension nodeExtension, OperationRunner[] partitionOperationRunners)
           
 
Method Summary
 OperationRunner getOperationRunner(int partitionId)
          For each partition there is a OperationRunner instance.
 
Methods inherited from class com.hazelcast.spi.impl.operationexecutor.classic.OperationThread
awaitTermination, getCurrentOperationRunner, run, shutdown
 
Methods inherited from class com.hazelcast.util.executor.HazelcastManagedThread
afterRun, beforeRun, executeRun, setContextClassLoader
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartitionOperationThread

public PartitionOperationThread(String name,
                                int threadId,
                                ScheduleQueue scheduleQueue,
                                ILogger logger,
                                HazelcastThreadGroup threadGroup,
                                NodeExtension nodeExtension,
                                OperationRunner[] partitionOperationRunners)
Method Detail

getOperationRunner

public OperationRunner getOperationRunner(int partitionId)
For each partition there is a OperationRunner instance. So we need to find the right one based on the partition-id.

Specified by:
getOperationRunner in class OperationThread


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.