@Override
    public boolean hasMessages() {
        return !messages.isEmpty();
    }
Returns true if there is a message waiting in the buffer.
jme3-networking/src/main/java/com/jme3/network/base/protocol/LazyMessageBuffer.java