code: private void processSingleRecord(Record record) {
          // TODO Add your own record processing logic here
  
          String data = null;
          try {
              // For this app, we interpret the payload as UTF-8 chars.
              data = decoder.decode(record.getData()).toString();
              // Assume this record came from AmazonKinesisSample and log its age.
              long recordCreateTime = new Long(data.substring("testData-".length()));
              long ageOfRecordInMillis = System.currentTimeMillis() - recordCreateTime;
  
              LOG.info(record.getSequenceNumber() + ", " + record.getPartitionKey() + ", " + data + ", Created "
                      + ageOfRecordInMillis + " milliseconds ago.");
          } catch (NumberFormatException e) {
              LOG.info("Record does not match sample record format. Ignoring record with data; " + data);
          } catch (CharacterCodingException e) {
              LOG.error("Malformed data: " + data, e);
          }
      }
docs: Process a single record.
  
  @param record The record to be processed.