public static class NioFiberImpl.BufferedWrite<T extends SelectableChannel & WritableByteChannel> extends Object implements NioChannelHandler
Constructor and Description |
---|
BufferedWrite(T channel,
NioFiberImpl.WriteFailure writeFailed,
NioFiberImpl.OnBuffer onBuffer) |
Modifier and Type | Method and Description |
---|---|
int |
buffer(ByteBuffer buffer) |
ByteBuffer |
getBuffer() |
SelectableChannel |
getChannel() |
int |
getInterestSet() |
void |
onEnd() |
boolean |
onSelect(NioFiber nioFiber,
NioControls controls,
SelectionKey key) |
void |
onSelectorEnd() |
public BufferedWrite(T channel, NioFiberImpl.WriteFailure writeFailed, NioFiberImpl.OnBuffer onBuffer)
public boolean onSelect(NioFiber nioFiber, NioControls controls, SelectionKey key)
onSelect
in interface NioChannelHandler
public SelectableChannel getChannel()
getChannel
in interface NioChannelHandler
public int getInterestSet()
getInterestSet
in interface NioChannelHandler
public void onEnd()
onEnd
in interface NioChannelHandler
public ByteBuffer getBuffer()
public void onSelectorEnd()
onSelectorEnd
in interface NioChannelHandler
public int buffer(ByteBuffer buffer)
Copyright © 2017. All Rights Reserved.