com.firefly.net.ByteBufferOutputEntry Maven / Gradle / Ivy
package com.firefly.net;
import java.nio.ByteBuffer;
import com.firefly.utils.concurrent.Callback;
public class ByteBufferOutputEntry extends AbstractOutputEntry {
public ByteBufferOutputEntry(Callback callback, ByteBuffer data) {
super(callback, data);
}
@Override
public OutputEntryType getOutputEntryType() {
return OutputEntryType.BYTE_BUFFER;
}
@Override
public long remaining() {
return data.remaining();
}
}