⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 command.java

📁 Java mulitplayer strategy game. Adaptation of KDE Galaxy Conquest. (rules are changed - but still th
💻 JAVA
字号:
/*
 * Command.java
 *
 * Created on 7 czerwiec 2005, 19:04
 */

package net.sf.jawp.gf.persistence;

import java.io.Serializable;
import java.util.Date;

/**
 * generic version of prevayler Transaction
 * 
 * @author jarek
 * @param <RETURNTYPE> type of object this transaction returns - may be Void
 * @param <SYSTEM> the type of persistens object (prevalent system)
 * @param <UNMODIFIABLE> the type of unmodifiable view of system
 *  
 */
public interface Command<RETURNTYPE, SYSTEM extends PersistentSystem<UNMODIFIABLE>, UNMODIFIABLE >
		extends Serializable
{
	/**
	 * the action that is taken
	 */
	RETURNTYPE perform(final SYSTEM system, final Date time);

	/**
	 * if it is asynchronous - system may move it to queue
	 */
	boolean isAsynchronous();

	/**
	 * if it is not critical may be stored in mem temporarily
	 */
	boolean isCritical();

	/**
	 * if it is only query
	 */
	boolean isQuery();

	/**
	 * if it is sensitive
	 * 
	 * commands by default are quries are not
	 */
	boolean isSensitive();
}

⌨️ 快捷键说明

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