net.named_data.jndn.encrypt
public abstract class ProducerDb extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProducerDb.Error
ConsumerDb.Error extends Exception for errors using ConsumerDb methods.
|
Constructor and Description |
---|
ProducerDb() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addContentKey(double timeSlot,
Blob key)
Add key as the content key for the hour covering timeSlot.
|
abstract void |
deleteContentKey(double timeSlot)
Delete the content key for the hour covering timeSlot.
|
abstract Blob |
getContentKey(double timeSlot)
Get the content key for the hour covering timeSlot.
|
protected static int |
getFixedTimeSlot(double timeSlot)
Get the hour-based time slot.
|
abstract boolean |
hasContentKey(double timeSlot)
Check if a content key exists for the hour covering timeSlot.
|
public abstract boolean hasContentKey(double timeSlot) throws ProducerDb.Error
timeSlot
- The time slot as milliseconds since Jan 1, 1970 UTC.ProducerDb.Error
- for a database error.public abstract Blob getContentKey(double timeSlot) throws ProducerDb.Error
timeSlot
- The time slot as milliseconds since Jan 1, 1970 UTC.ProducerDb.Error
- if there is no key covering timeSlot or other
database error.public abstract void addContentKey(double timeSlot, Blob key) throws ProducerDb.Error
timeSlot
- The time slot as milliseconds since Jan 1, 1970 UTC.key
- The encoded key.ProducerDb.Error
- if a key for the same hour already exists in the
database, or other database error.public abstract void deleteContentKey(double timeSlot) throws ProducerDb.Error
timeSlot
- The time slot as milliseconds since Jan 1, 1970 UTC.ProducerDb.Error
- for a database error.protected static int getFixedTimeSlot(double timeSlot)
timeSlot
- The time slot as milliseconds since Jan 1, 1970 UTC.Copyright © 2016. All rights reserved.