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

📄 operation.java

📁 memcached JAVA客户端API,应用广泛,运行比较稳定。
💻 JAVA
字号:
package net.spy.memcached.ops;import java.io.IOException;import java.nio.ByteBuffer;/** * Base interface for all operations. */public interface Operation {	/**	 * Has this operation been cancelled?	 */	boolean isCancelled();	/**	 * True if an error occurred while processing this operation.	 */	boolean hasErrored();	/**	 * Get the exception that occurred (or null if no exception occurred).	 */	OperationException getException();	/**	 * Get the callback for this get operation.	 */	OperationCallback getCallback();	/**	 * Cancel this operation.	 */	void cancel();	/**	 * Get the current state of this operation.	 */	OperationState getState();	/**	 * Get the write buffer for this operation.	 */	ByteBuffer getBuffer();	/**	 * Invoked after having written all of the bytes from the supplied output	 * buffer.	 */	void writeComplete();	/**	 * Initialize this operation.  This is used to prepare output byte buffers	 * and stuff.	 */	void initialize();	/**	 * Read data from the given byte buffer and dispatch to the appropriate	 * read mechanism.	 */	void readFromBuffer(ByteBuffer data) throws IOException;	/**	 * Handle a raw data read.	 */	void handleRead(ByteBuffer data);}

⌨️ 快捷键说明

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