Only a few javadocs
This commit is contained in:
parent
87cc67306f
commit
122051ba44
@ -21,6 +21,9 @@ import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.nio.ReadOnlyBufferException;
|
||||
|
||||
/**
|
||||
* Abstract base class for WrappedByteBuf implementations.
|
||||
*/
|
||||
public abstract class AbstractWrappedByteBuf extends AbstractByteBuf implements WrappedByteBuf {
|
||||
|
||||
protected AbstractWrappedByteBuf(ByteOrder endianness, int maxCapacity) {
|
||||
|
@ -16,6 +16,14 @@
|
||||
package io.netty.buffer;
|
||||
|
||||
public interface ChannelBuf {
|
||||
/**
|
||||
* The ChannelBufType which will be handled by the ChannelBuf implementation
|
||||
*/
|
||||
ChannelBufType type();
|
||||
|
||||
/**
|
||||
* Return <code>true</code> if the ChannelBuf is pooled.
|
||||
*
|
||||
*/
|
||||
boolean isPooled();
|
||||
}
|
||||
|
@ -15,7 +15,17 @@
|
||||
*/
|
||||
package io.netty.buffer;
|
||||
|
||||
/**
|
||||
* The type of the ChannelBuf
|
||||
*/
|
||||
public enum ChannelBufType {
|
||||
/**
|
||||
* Operates one bytes.
|
||||
*/
|
||||
BYTE,
|
||||
|
||||
/**
|
||||
* Operates on messages, which can be of any kind.
|
||||
*/
|
||||
MESSAGE
|
||||
}
|
||||
|
@ -18,6 +18,11 @@ package io.netty.buffer;
|
||||
import java.util.Collection;
|
||||
import java.util.Queue;
|
||||
|
||||
/**
|
||||
* ChannelBuf which operates on messages
|
||||
*
|
||||
* @param <T>
|
||||
*/
|
||||
public interface MessageBuf<T> extends ChannelBuf, Queue<T> {
|
||||
int drainTo(Collection<? super T> c);
|
||||
int drainTo(Collection<? super T> c, int maxElements);
|
||||
|
Loading…
Reference in New Issue
Block a user