forked from p15670423/monkey
Common: Rename IEventQueue -> IAgentEventQueue
This commit is contained in:
parent
f577e48d72
commit
903d43fe26
|
@ -1,3 +1,3 @@
|
|||
from .types import EventSubscriber
|
||||
from .i_event_queue import IEventQueue
|
||||
from .i_event_queue import IAgentEventQueue
|
||||
from .pypubsub_event_queue import PyPubSubEventQueue
|
||||
|
|
|
@ -6,7 +6,7 @@ from common.events import AbstractAgentEvent
|
|||
from . import EventSubscriber
|
||||
|
||||
|
||||
class IEventQueue(ABC):
|
||||
class IAgentEventQueue(ABC):
|
||||
"""
|
||||
Manages subscription and publishing of events
|
||||
"""
|
||||
|
|
|
@ -5,14 +5,14 @@ from pubsub.core import Publisher
|
|||
|
||||
from common.events import AbstractAgentEvent
|
||||
|
||||
from . import EventSubscriber, IEventQueue
|
||||
from . import EventSubscriber, IAgentEventQueue
|
||||
|
||||
_ALL_EVENTS_TOPIC = "all_events_topic"
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class PyPubSubEventQueue(IEventQueue):
|
||||
class PyPubSubEventQueue(IAgentEventQueue):
|
||||
def __init__(self, pypubsub_publisher: Publisher):
|
||||
self._pypubsub_publisher = pypubsub_publisher
|
||||
self._refs = []
|
||||
|
|
Loading…
Reference in New Issue