public class InMemoryStorageRetaining extends Object
| Constructor and Description |
|---|
InMemoryStorageRetaining() |
| Modifier and Type | Method and Description |
|---|---|
Data |
find(Interest interest)
Find the best match Data for an Interest.
|
HashMap |
getCache_()
Get the the storage cache, which should only be used for testing.
|
void |
insert(Data data)
Insert a Data packet.
|
int |
size()
Get the number of packets stored in the in-memory storage.
|
public void insert(Data data) throws EncodingException
data - The packet to insert, which is copied.EncodingException - for error encoding the Data packet to get the
implicit digest.public Data find(Interest interest)
interest - The Interest with the Name of the Data packet to find.public int size()
public final HashMap getCache_()
Copyright © 2019. All rights reserved.