Package io.netty5.channel.unix
Class SocketWritableByteChannel
- java.lang.Object
-
- io.netty5.channel.unix.SocketWritableByteChannel
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,WritableByteChannel
public abstract class SocketWritableByteChannel extends Object implements WritableByteChannel
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SocketWritableByteChannel(FileDescriptor fd)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract BufferAllocator
alloc()
void
close()
boolean
isOpen()
int
write(ByteBuffer src)
-
-
-
Constructor Detail
-
SocketWritableByteChannel
protected SocketWritableByteChannel(FileDescriptor fd)
-
-
Method Detail
-
write
public final int write(ByteBuffer src) throws IOException
- Specified by:
write
in interfaceWritableByteChannel
- Throws:
IOException
-
close
public final void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
alloc
protected abstract BufferAllocator alloc()
-
-