/** * Notifies the {@code ElementByteSizeObserver} about the byte size of the encoded value using * this {@code Coder}. * * <p>Not intended to be called by user code, but instead by {@link PipelineRunner} * implementations. * * <p>By default, this notifies {@code observer} about the byte size of the encoded value using * this coder as returned by {@link #getEncodedElementByteSize}. */ public void registerByteSizeObserver(T value, ElementByteSizeObserver observer) throws Exception { observer.update(getEncodedElementByteSize(value)); }