@Override
    public Selector wakeup() {
        logger.debug("being asked to wake up from select");
        // throw new NotImplementedException("Not implemented for this selector, should not be needed.");
        if ((selectPromise != null) && !selectPromise.isDone()) {
            selectPromise.setSuccess(null);
        }
        return this;
    }
Returns all keys that are in the events queue
@return
plc4j/transports/serial/src/main/java/org/apache/plc4x/java/transport/serial/SerialPollingSelector.java