📄 replicationslavestorage.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -