public ConsumerCallbackResult printEvent(DbusEventInternalReadable e,
DbusEventDecoder eventDecoder)
{
DbusEventAvroDecoder avroDecoder = (DbusEventAvroDecoder)eventDecoder;
byte[] payloadSchemaDigest = e.schemaId();
DbusEventPart metadataPart = e.getPayloadMetadataPart();
String s = String.format("format=%s opcode=%s partition=%d scn=%d ts=%d (%s.%d) srcid=%d extRepl=%s schema=%s " +
"payload_schema_digest=%s metadata_schema=%s metadata_schema_digest=%s",
e.getClass().getSimpleName(),
e.getOpcode(),
e.getPartitionId(),
e.sequence(),
e.timestampInNanos(),
EVENT_TS_FORMAT.format(new Date(e.timestampInNanos() / 1000000)),
e.timestampInNanos() % 1000000000,
e.getSourceId(),
e.isExtReplicatedEvent(),
versionedSchemaId(eventDecoder.getPayloadSchema(e)),
null != payloadSchemaDigest ? Hex.encodeHexString(payloadSchemaDigest) : "null",
null != metadataPart ? versionedSchemaId(avroDecoder.getMetadataSchema(e)) : "null",
null != metadataPart ? Hex.encodeHexString(metadataPart.getSchemaDigest()) : "null");
try
{
_out.write(s.getBytes("UTF-8"));
_out.write('\n');
}