mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-24 04:36:31 +00:00
14 lines
382 B
TypeScript
14 lines
382 B
TypeScript
|
export default class TopicAliasSend {
|
||
|
private aliasToTopic;
|
||
|
private topicToAlias;
|
||
|
private max;
|
||
|
private numberAllocator;
|
||
|
length: number;
|
||
|
constructor(max: number);
|
||
|
put(topic: string, alias: number): boolean;
|
||
|
getTopicByAlias(alias: number): string;
|
||
|
getAliasByTopic(topic: string): number | undefined;
|
||
|
clear(): void;
|
||
|
getLruAlias(): number;
|
||
|
}
|