store.java

来自「OpenJMS是一个开源的Java Message Service API 1.」· Java 代码 · 共 45 行

JAVA
45
字号
package org.exolab.jms.tools.migration;import javax.jms.JMSException;import org.exolab.jms.persistence.PersistenceException;/** * <code>Store</code> represents a persistent collection. * It provides an API for importing and exporting the collection. * * @author <a href="mailto:tma@netspace.net.au">Tim Anderson</a> * @version $Revision: 1.1 $ $Date: 2005/09/04 07:07:12 $ */public interface Store {    /**     * Export the collection.     *     * @return an iterator over the collection     * @throws JMSException for any JMS error     * @throws PersistenceException for any persistence error     */    StoreIterator exportCollection() throws JMSException, PersistenceException;    /**     * Import a collection.     *     * @param iterator an iterator over the collection     * @throws JMSException for any JMS error     * @throws PersistenceException for any persistence error     */    void importCollection(StoreIterator iterator)            throws JMSException, PersistenceException;    /**     * Returns the number of elements in the collection.     *     * @return the number of elements in the collection     * @throws PersistenceException for any persistence error     */    int size() throws PersistenceException;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?