com.hazelcast.nio.tcp
Class OutSelectorImpl

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

public final class OutSelectorImpl
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
OutSelectorImpl(ThreadGroup threadGroup, String tname, ILogger logger, IOSelectorOutOfMemoryHandler oomeHandler)
           
 
Method Summary
 long getWriteEvents()
          Returns the current number of write events that have been processed by this OutSelectorImpl.
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

OutSelectorImpl

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

getWriteEvents

public long getWriteEvents()
Returns the current number of write events that have been processed by this OutSelectorImpl. This method is thread-safe.

Returns:
the number of write events.

handleSelectionKey

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


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