com.hazelcast.nio.tcp
Class InSelectorImpl

java.lang.Object
  extended by java.lang.Thread
      extended by com.hazelcast.nio.tcp.AbstractIOSelector
          extended by com.hazelcast.nio.tcp.InSelectorImpl
All Implemented Interfaces:
NIOThread, IOSelector, Runnable

public final class InSelectorImpl
extends AbstractIOSelector


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class com.hazelcast.nio.tcp.AbstractIOSelector
live, logger, selector, selectorQueue, waitTime
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
InSelectorImpl(ThreadGroup threadGroup, String tname, ILogger logger, IOSelectorOutOfMemoryHandler oomeHandler)
           
 
Method Summary
 long getReadEvents()
          Returns the current number of read events that have been processed by this InSelectorImpl.
protected  void handleSelectionKey(SelectionKey sk)
           
 
Methods inherited from class com.hazelcast.nio.tcp.AbstractIOSelector
addTask, awaitShutdown, getSelector, run, shutdown, wakeup
 
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, setContextClassLoader, 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
 
Methods inherited from interface com.hazelcast.nio.tcp.IOSelector
start
 

Constructor Detail

InSelectorImpl

public InSelectorImpl(ThreadGroup threadGroup,
                      String tname,
                      ILogger logger,
                      IOSelectorOutOfMemoryHandler oomeHandler)
Method Detail

getReadEvents

public long getReadEvents()
Returns the current number of read events that have been processed by this InSelectorImpl. This method is thread-safe.

Returns:
the number of read events.

handleSelectionKey

protected void handleSelectionKey(SelectionKey sk)
Specified by:
handleSelectionKey in class AbstractIOSelector


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