Package dev.enola.chat
Class SimpleInMemorySwitchboard
java.lang.Object
dev.enola.chat.SimpleInMemorySwitchboard
- All Implemented Interfaces:
Switchboard
- Direct Known Subclasses:
TestSwitchboard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpost(Message.Builder builder) Post a Message to the switchboard.voidWatch the switchboard for new messages.
-
Constructor Details
-
SimpleInMemorySwitchboard
public SimpleInMemorySwitchboard()
-
-
Method Details
-
post
Description copied from interface:SwitchboardPost a Message to the switchboard.- Specified by:
postin interfaceSwitchboard
-
watch
Description copied from interface:SwitchboardWatch the switchboard for new messages.This is intended to be used mostly internally; "applications" should write
Agents, instead.- Specified by:
watchin interfaceSwitchboard
-