2013-03-18 09:50:48 +01:00
|
|
|
/**
|
2014-02-17 18:57:38 +01:00
|
|
|
*
|
2014-05-25 17:49:17 +02:00
|
|
|
* Copyright © 2011-2014 Florian Schmaus
|
2014-02-17 18:57:38 +01:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
2013-03-18 09:50:48 +01:00
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2014-02-18 10:24:59 +01:00
|
|
|
package org.jivesoftware.smackx.caps.cache;
|
2013-03-18 09:50:48 +01:00
|
|
|
|
2014-02-15 11:35:08 +01:00
|
|
|
import org.jivesoftware.smackx.disco.packet.DiscoverInfo;
|
2013-03-18 09:50:48 +01:00
|
|
|
|
|
|
|
public interface EntityCapsPersistentCache {
|
|
|
|
/**
|
2015-03-29 12:15:32 +02:00
|
|
|
* Add an DiscoverInfo to the persistent Cache.
|
2013-03-18 09:50:48 +01:00
|
|
|
*
|
2014-05-25 17:49:17 +02:00
|
|
|
* @param nodeVer
|
2013-03-18 09:50:48 +01:00
|
|
|
* @param info
|
|
|
|
*/
|
2014-05-25 17:49:17 +02:00
|
|
|
void addDiscoverInfoByNodePersistent(String nodeVer, DiscoverInfo info);
|
2013-03-18 09:50:48 +01:00
|
|
|
|
|
|
|
/**
|
2015-03-29 12:15:32 +02:00
|
|
|
* Lookup DiscoverInfo by a Node string.
|
2013-03-18 09:50:48 +01:00
|
|
|
*/
|
2014-05-25 17:49:17 +02:00
|
|
|
DiscoverInfo lookup(String nodeVer);
|
2013-03-18 09:50:48 +01:00
|
|
|
|
|
|
|
/**
|
2015-03-29 12:15:32 +02:00
|
|
|
* Empty the Cache.
|
2013-03-18 09:50:48 +01:00
|
|
|
*/
|
2013-03-31 16:24:50 +02:00
|
|
|
void emptyCache();
|
2013-03-18 09:50:48 +01:00
|
|
|
}
|