Class VirtualChannelSelectorImpl

java.lang.Object
com.biglybt.core.networkmanager.impl.tcp.VirtualChannelSelectorImpl

public class VirtualChannelSelectorImpl extends Object
Provides a simplified and safe (selectable-channel) socket single-op selector.
  • Field Details

    • LOGID

      private static final LogIDs LOGID
    • MAYBE_BROKEN_SELECT

      private static final boolean MAYBE_BROKEN_SELECT
    • SELECTOR_TIMEOUT

      private static final int SELECTOR_TIMEOUT
      See Also:
    • get_selector_allowed

      static final AESemaphore get_selector_allowed
    • select_is_broken

      private boolean select_is_broken
    • select_looks_broken_count

      private int select_looks_broken_count
    • logged_broken_select

      private boolean logged_broken_select
    • selector

      protected Selector selector
    • selector_guard

      private final SelectorGuard selector_guard
    • consec_select_fails

      private int consec_select_fails
    • consec_select_fails_start

      private long consec_select_fails_start
    • register_cancel_list

      private final Map<AbstractSelectableChannel,Object> register_cancel_list
    • register_cancel_list_mon

      private final AEMonitor register_cancel_list_mon
    • paused_states

      private final HashMap<AbstractSelectableChannel,Boolean> paused_states
    • INTEREST_OP

      private final int INTEREST_OP
    • pause_after_select

      private final boolean pause_after_select
    • parent

      protected final VirtualChannelSelector parent
    • destroyed

      private volatile boolean destroyed
    • randomise_keys

      private boolean randomise_keys
    • next_select_loop_pos

      private int next_select_loop_pos
    • WRITE_SELECTOR_DEBUG_CHECK_PERIOD

      private static final int WRITE_SELECTOR_DEBUG_CHECK_PERIOD
      See Also:
    • WRITE_SELECTOR_DEBUG_MAX_TIME

      private static final int WRITE_SELECTOR_DEBUG_MAX_TIME
      See Also:
    • last_write_select_debug

      private long last_write_select_debug
    • last_select_debug

      private long last_select_debug
    • last_reopen_attempt

      private long last_reopen_attempt
  • Constructor Details

    • VirtualChannelSelectorImpl

      public VirtualChannelSelectorImpl(VirtualChannelSelector _parent, int _interest_op, boolean _pause_after_select, boolean _randomise_keys)
  • Method Details