@ProviderType
public interface MessageStoreProvider
MessageStore instances.| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ConnectionListener listener)
Adds a
ConnectionListener. |
MessageStore |
openMessageStore(java.lang.String name)
Opens or creates a
MessageStore instance with the given name. |
void |
removeListener(ConnectionListener listener)
Removes a
ConnectionListener |
MessageStore openMessageStore(java.lang.String name) throws KuraStoreException
MessageStore instance with the given name. Invoking
this method could allocate the resources required to support the returned MessageStore instance (for
example tables in a RDBMS).*name - the store name.MessageStoreKuraStoreExceptionvoid addListener(ConnectionListener listener)
ConnectionListener. A typical behavior of a client of this listener is to close the currently open
MessageStore instances when a ConnectionListener.disconnected() event is received.listener - to addvoid removeListener(ConnectionListener listener)
ConnectionListenerlistener - to remove