msgpack-java icon indicating copy to clipboard operation
msgpack-java copied to clipboard

Thread-safe ValueBuffer

Open xerial opened this issue 11 years ago • 1 comments

We need thread-safe ValueHolder so that we can safely pass the read value into another function. ValueBuffer is an example of its implementation. https://github.com/msgpack/msgpack-java/blob/v07-value-sf/msgpack-value/src/main/java/org/msgpack/value/ValueBuffer.java

xerial avatar Jul 11 '14 04:07 xerial

Or Value interface should represent immutable (thread-safe) value, that is, materialized value. For traversing array/map efficiently, we can use MessageUnpacker.unapckArrayHeader and MessageUnpacker.unpackValue(...)

xerial avatar Jul 11 '14 05:07 xerial