@Override public String fromBytes(byte[] bytes) { CoordinatorStreamMessage message = new CoordinatorStreamMessage(keySerde.fromBytes(bytes).toArray(), new HashMap<>()); return message.getKey(); }
@Override public String fromBytes(byte[] bytes) { CoordinatorStreamMessage message = new CoordinatorStreamMessage(keySerde.fromBytes(bytes).toArray(), new HashMap<>()); return message.getKey(); }
@Override public String fromBytes(byte[] bytes) { CoordinatorStreamMessage message = new CoordinatorStreamMessage(keySerde.fromBytes(bytes).toArray(), new HashMap<>()); return message.getKey(); }
@Override public String fromBytes(byte[] bytes) { CoordinatorStreamMessage message = new CoordinatorStreamMessage(keySerde.fromBytes(bytes).toArray(), new HashMap<>()); return message.getKey(); }
@Override public String fromBytes(byte[] bytes) { CoordinatorStreamMessage message = new CoordinatorStreamMessage(keySerde.fromBytes(bytes).toArray(), new HashMap<>()); return message.getKey(); }
/** * Returns all the messages from the earliest offset all the way to the latest. */ private void bootstrapMessagesFromStream() { synchronized (bootstrapLock) { while (iterator.hasNext()) { IncomingMessageEnvelope envelope = iterator.next(); byte[] keyAsBytes = (byte[]) envelope.getKey(); Serde<List<?>> serde = new JsonSerde<>(); Object[] keyArray = serde.fromBytes(keyAsBytes).toArray(); CoordinatorStreamMessage coordinatorStreamMessage = new CoordinatorStreamMessage(keyArray, new HashMap<>()); if (Objects.equals(coordinatorStreamMessage.getType(), type)) { if (envelope.getMessage() != null) { bootstrappedMessages.put(coordinatorStreamMessage.getKey(), (byte[]) envelope.getMessage()); } else { bootstrappedMessages.remove(coordinatorStreamMessage.getKey()); } } } } }
String configKey = coordinatorStreamMessage.getKey(); if (coordinatorStreamMessage.isDelete()) { configMap.remove(configKey);
String configKey = coordinatorStreamMessage.getKey(); if (coordinatorStreamMessage.isDelete()) { configMap.remove(configKey);
String configKey = coordinatorStreamMessage.getKey(); if (coordinatorStreamMessage.isDelete()) { configMap.remove(configKey);
String configKey = coordinatorStreamMessage.getKey(); if (coordinatorStreamMessage.isDelete()) { configMap.remove(configKey);
String configKey = coordinatorStreamMessage.getKey(); if (coordinatorStreamMessage.isDelete()) { configMap.remove(configKey);