2018-11-10 18:31:51 +01:00
|
|
|
/*
|
2019-03-16 17:04:23 +08:00
|
|
|
* Copyright (c) 2012-2017 The original author or authors
|
2018-11-10 18:31:51 +01:00
|
|
|
* ------------------------------------------------------
|
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
|
* and Apache License v2.0 which accompanies this distribution.
|
|
|
|
|
*
|
|
|
|
|
* The Eclipse Public License is available at
|
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
|
*
|
|
|
|
|
* The Apache License v2.0 is available at
|
|
|
|
|
* http://www.opensource.org/licenses/apache2.0.php
|
|
|
|
|
*
|
|
|
|
|
* You may elect to redistribute this code under either of these licenses.
|
|
|
|
|
*/
|
2018-08-12 15:50:22 +02:00
|
|
|
|
2019-03-16 17:04:23 +08:00
|
|
|
package io.moquette.spi;
|
2018-08-12 15:50:22 +02:00
|
|
|
|
2019-03-16 17:04:23 +08:00
|
|
|
public interface IStore {
|
2018-11-28 23:05:24 +01:00
|
|
|
|
2019-03-16 17:04:23 +08:00
|
|
|
void initStore();
|
2018-11-22 22:16:44 +01:00
|
|
|
|
2019-03-16 17:04:23 +08:00
|
|
|
void close();
|
2018-08-12 15:50:22 +02:00
|
|
|
|
2019-03-16 17:04:23 +08:00
|
|
|
/**
|
|
|
|
|
* Factory method to instantiate the messages store.
|
|
|
|
|
*
|
|
|
|
|
* @return the create instance of IMessagesStore.
|
|
|
|
|
* */
|
|
|
|
|
IMessagesStore messagesStore();
|
2018-08-12 15:50:22 +02:00
|
|
|
|
2019-03-16 17:04:23 +08:00
|
|
|
/**
|
|
|
|
|
* Factory method to instantiate the session store.
|
|
|
|
|
*
|
|
|
|
|
* @return the create instance of ISessionsStore.
|
|
|
|
|
* */
|
|
|
|
|
ISessionsStore sessionsStore();
|
2018-08-12 15:50:22 +02:00
|
|
|
}
|