2324252627282930
decoder.init(props, topicName); return decoder; } catch (Exception e) { throw new MessageDecoderException(e); } }
35363738394041424344
registry.init(props); this.registry = new CachedSchemaRegistry<Schema>(registry); this.latestSchema = registry.getLatestSchemaByTopic(topicName).getSchema(); } catch (Exception e) { throw new MessageDecoderException(e); } decoderFactory = DecoderFactory.get(); }
117118119120121122123124
return new CamusAvroWrapper(reader.read(null, decoderFactory .binaryDecoder(helper.getBuffer().array(), helper.getStart(), helper.getLength(), null))); } catch (IOException e) { throw new MessageDecoderException(e); } }