@Override
    public String toString() {
        return "LogEntry [type=" + this.type + ", id=" + this.id + ", peers=" + this.peers + ", oldPeers="
               + this.oldPeers + ", learners=" + this.learners + ", oldLearners=" + this.oldLearners + ", data="
               + (this.data != null ? this.data.remaining() : 0) + "]";
    }
Creates a new, read-only byte buffer that shares this log entry's data buffer's content.

@return the new, read-only byte buffer
jraft-core/src/main/java/com/alipay/sofa/jraft/entity/LogEntry.java