Code example for SetMultimap

Methods: put

0
     * Add an event pointer to the inflights list. 
     * @param transactionID 
     * @param pointer 
     */ 
    public void addEvent(Long transactionID, Long pointer){
      inflightEvents.put(transactionID, pointer);
      inflightFileIDs.put(transactionID,
              FlumeEventPointer.fromLong(pointer).getFileID());
      syncRequired = true;
    } 
 
    /** 
     * Serialize the set of in flights into a byte longBuffer. 
     * @return Returns the checksum of the buffer that is being 
     * asynchronously written to disk. 
     */ 
    public void serializeAndWrite() throws Exception {
      Collection<Long> values = inflightEvents.values();
      if(!fileChannel.isOpen()){
        file = new RandomAccessFile(inflightEventsFile, "rw");