com.emc.mongoose.base.item.io.AsyncChannel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-base Show documentation
Show all versions of mongoose-base Show documentation
Mongoose is a high-load storage performance testing tool
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