private boolean queueIsFull() {
        return messageQueue.size() >= maxQueueNumber - 1;
    }
Check whether queue is nearly full

@return true if is nearly full else false.
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/message/PackProxyMessage.java