replicationslavestorage.java
来自「这个是perst-269.zip下面的SOURCECODE,和大家分享了。」· Java 代码 · 共 21 行
JAVA
21 行
package org.garret.perst;
/**
* Storage reciving modified pages from replication master and
* been able to run read-only transactions
*/
public interface ReplicationSlaveStorage extends Storage {
/**
* Check if socket is connected to the master host
* @return <code>true</code> if connection between slave and master is sucessfully established
*/
public boolean isConnected();
/**
* Wait until database is modified by master
* This method blocks current thread until master node commits trasanction and
* this transanction is completely delivered to this slave node
*/
public void waitForModification();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?