All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emc.mongoose.base.item.io.AsyncChannel Maven / Gradle / Ivy

There is a newer version: 4.3.10
Show newest version
package com.emc.mongoose.base.item.io;

import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousChannel;
import java.nio.channels.CompletionHandler;

public interface AsyncChannel
extends AsynchronousChannel {

	boolean isFileChannel();

	AsynchronousChannel wrapped();

	 void read(
		final ByteBuffer dst, final long position, final A attach, final CompletionHandler handler
	);

	 void write(
		final ByteBuffer src, final long position, final A attach, final CompletionHandler handler
	);

	static AsyncChannel wrap(final AsynchronousChannel channel) {
		return new AsyncChannelWrapper(channel);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy