Package com.codecademy.eventhub.model

Examples of com.codecademy.eventhub.model.User.toByteBuffer()


      return id;
    }
    User user = new User.Builder(externalUserId, Maps.<String, String>newHashMap()).build();
    try {
      id = idMap.incrementNextAvailableId();
      byte[] location = JournalUtil.locationToBytes(userJournal.write(user.toByteBuffer(), true));
      MetaData metaData = new MetaData(location);
      metaDataList.add(metaData);
      idMap.put(externalUserId, id);
      return id;
    } catch (IOException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.