📄 tuplespace.java
字号:
package concurrency.connector;
public interface TupleSpace {
// deposits data in tuple space
public void out (String tag, Object data);
// extracts object with tag from tuple space, blocks if not available
public Object in (String tag) throws InterruptedException;
// reads object with tag from tuple space, blocks if not available
public Object rd (String tag) throws InterruptedException;
// extracts object if available, return null if not available
public Object inp (String tag);
//reads object if available, return null if not available
public Object rdp (String tag);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -