Class StaticMapJvmPubSubStorage
java.lang.Object
org.chenile.pubsub.jvm.storage.StaticMapJvmPubSubStorage
- All Implemented Interfaces:
JvmPubSubStorage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear storage (primarily useful for tests and in-memory implementations).findByTopic(String topic) Retrieve stored messages for a topic.voidsave(JvmPubSubMessage message) Persist an incoming or outgoing pub-sub message.
-
Field Details
-
STORAGE
-
-
Constructor Details
-
StaticMapJvmPubSubStorage
public StaticMapJvmPubSubStorage()
-
-
Method Details
-
save
Description copied from interface:JvmPubSubStoragePersist an incoming or outgoing pub-sub message.- Specified by:
savein interfaceJvmPubSubStorage
-
findByTopic
Description copied from interface:JvmPubSubStorageRetrieve stored messages for a topic.- Specified by:
findByTopicin interfaceJvmPubSubStorage
-
clear
public void clear()Description copied from interface:JvmPubSubStorageClear storage (primarily useful for tests and in-memory implementations).- Specified by:
clearin interfaceJvmPubSubStorage
-
CHENILE