LimeWire Consolidated API

com.limegroup.gnutella
Interface GuidMap


public interface GuidMap

A map of one GUID to another. This supports the ability to declare that the mapping should expire at a certain time. If no time is specified, the mapping may expire at a default interval.


Method Summary
 void addMapping(byte[] origGUID, byte[] newGUID)
          Adds a mapping between the original guid and the new GUID.
 void addMapping(byte[] origGUID, byte[] newGUID, long expireInterval)
          Adds a mapping between the original guid and the new GUID.
 GUID getNewGUID(GUID origGUID)
          Gets the newGUID, given the origGUID.
 byte[] getOriginalGUID(byte[] newGUID)
          Gets the origGUID, given the newGUID.
 

Method Detail

addMapping

void addMapping(byte[] origGUID,
                byte[] newGUID)
Adds a mapping between the original guid and the new GUID.


addMapping

void addMapping(byte[] origGUID,
                byte[] newGUID,
                long expireInterval)
Adds a mapping between the original guid and the new GUID. The mapping should expire at the given interval.


getOriginalGUID

byte[] getOriginalGUID(byte[] newGUID)
Gets the origGUID, given the newGUID.


getNewGUID

GUID getNewGUID(GUID origGUID)
Gets the newGUID, given the origGUID.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.