mirror of
https://github.com/thingsboard/thingsboard-gateway
synced 2025-10-26 22:31:42 +08:00
19 lines
385 B
Python
19 lines
385 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class EventStorage(ABC):
|
|
|
|
@abstractmethod
|
|
def put(self, event):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def get_event_pack(self):
|
|
# Returns max "10" events from pack
|
|
pass
|
|
|
|
@abstractmethod
|
|
def event_pack_processing_done(self):
|
|
# Indicates that events from previous "get_event_pack" may be cleared
|
|
pass
|