import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
+import org.opendaylight.yangtools.yang.data.impl.schema.ReusableImmutableNormalizedNodeStreamWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
}
public Entry<TransactionIdentifier, DataTreeCandidate> getCandidate() throws IOException {
+ return getCandidate(ReusableImmutableNormalizedNodeStreamWriter.create());
+ }
+
+ public Entry<TransactionIdentifier, DataTreeCandidate> getCandidate(
+ final ReusableImmutableNormalizedNodeStreamWriter writer) throws IOException {
final DataInput in = ByteStreams.newDataInput(serialized);
return new SimpleImmutableEntry<>(TransactionIdentifier.readFrom(in),
- DataTreeCandidateInputOutput.readDataTreeCandidate(in));
+ DataTreeCandidateInputOutput.readDataTreeCandidate(in, writer));
}
@Override