IoHandler which uses kqueue under the covers. Only works on BSD!
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final KQueueEventArray | |
| private final IntObjectMap | |
| private final KQueueEventArray | |
| private final IovArray | |
| private static final int | |
| private final FileDescriptor | |
| private static final InternalLogger | |
| private final IntSupplier | |
| private final SelectStrategy | |
| private static final AtomicIntegerFieldUpdater | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static AbstractKQueueChannel | |
| private IovArray | |
| public void | deregister(IoHandle
the handle)IoHandle to deregister..Implements io. IoHandle for IO.
|
| public void | destroy()
Implements io. IoHandler and free all its resources.
|
| private void | |
| private static void | |
| public boolean | isCompatible(Class<? extends IoHandle>
the type of the handleType)IoHandle.Implements io. true if the given type is compatible with this IoHandler and so can be registered,
false otherwise.
|
| private int | |
| private int | |
| private int | |
| public static IoHandlerFactory | |
| public static IoHandlerFactory | newFactory(final int maxEvents, final SelectStrategyFactory selectStrategyFactory)
Returns a new |
| public void | prepareToDestroy()
Implements io. IoHandler.
|
| private void | |
| public void | register(IoHandle
the handle)Channel to register..Implements io. Channel for IO.
|
| public int | run(IoExecutionContext context)
Implements io. IoHandler.
|
| public void | wakeup(boolean inEventLoop)
Implements io. IoHandler, which means if any operation blocks it should be unblocked and
return as soon as possible.
|
| private void |
| allowGrowing | back to summary |
|---|---|
| private final boolean allowGrowing | |
| changeList | back to summary |
|---|---|
| private final KQueueEventArray changeList | |
| channels | back to summary |
|---|---|
| private final IntObjectMap<AbstractKQueueChannel<?>> channels | |
| eventList | back to summary |
|---|---|
| private final KQueueEventArray eventList | |
| iovArray | back to summary |
|---|---|
| private final IovArray iovArray | |
| KQUEUE_WAKE_UP_IDENT | back to summary |
|---|---|
| private static final int KQUEUE_WAKE_UP_IDENT | |
| kqueueFd | back to summary |
|---|---|
| private final FileDescriptor kqueueFd | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| selectNowSupplier | back to summary |
|---|---|
| private final IntSupplier selectNowSupplier | |
| selectStrategy | back to summary |
|---|---|
| private final SelectStrategy selectStrategy | |
| WAKEN_UP_UPDATER | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<KQueueHandler> WAKEN_UP_UPDATER | |
| wakenUp | back to summary |
|---|---|
| private volatile int wakenUp | |
| KQueueHandler | back to summary |
|---|---|
| private KQueueHandler() | |
| KQueueHandler | back to summary |
|---|---|
| private KQueueHandler(int maxEvents, SelectStrategy strategy) | |
| cast | back to summary |
|---|---|
| private static AbstractKQueueChannel | |
| cleanArray | back to summary |
|---|---|
| private IovArray cleanArray() | |
| deregister | back to summary |
|---|---|
| public void deregister(IoHandle handle) throws Exception Implements io. Doc from io. Deregister a | |
| destroy | back to summary |
|---|---|
| public void destroy() Implements io. Doc from io. Destroy the
| |
| evSet | back to summary |
|---|---|
| private void evSet(AbstractKQueueChannel<?> ch, short filter, short flags, int fflags) | |
| handleLoopException | back to summary |
|---|---|
| private static void handleLoopException(Throwable t) | |
| isCompatible | back to summary |
|---|---|
| public boolean isCompatible(Class<? extends IoHandle> handleType) Implements io. Doc from io. Returns | |
| kqueueWait | back to summary |
|---|---|
| private int kqueueWait(IoExecutionContext context, boolean oldWakeup) throws IOException | |
| kqueueWait | back to summary |
|---|---|
| private int kqueueWait(int timeoutSec, int timeoutNs) throws IOException | |
| kqueueWaitNow | back to summary |
|---|---|
| private int kqueueWaitNow() throws IOException | |
| newFactory | back to summary |
|---|---|
| public static IoHandlerFactory newFactory() Returns a new | |
| newFactory | back to summary |
|---|---|
| public static IoHandlerFactory newFactory(final int maxEvents, final SelectStrategyFactory selectStrategyFactory) Returns a new | |
| prepareToDestroy | back to summary |
|---|---|
| public void prepareToDestroy() Implements io. Doc from io. Prepare to destroy this
| |
| processReady | back to summary |
|---|---|
| private void processReady(int ready) | |
| register | back to summary |
|---|---|
| public void register(IoHandle handle) Implements io. Doc from io. Register a | |
| run | back to summary |
|---|---|
| public int run(IoExecutionContext context) Implements io. Doc from io. Run the IO handled by this | |
| wakeup | back to summary |
|---|---|
| public void wakeup(boolean inEventLoop) Implements io. Doc from io. Wakeup the
| |
| wakeup | back to summary |
|---|---|
| private void wakeup() | |