public class NamedChannelWithTimeout extends NamedChannel
channel| Constructor and Description |
|---|
NamedChannelWithTimeout(RepImpl repImpl,
Logger logger,
ChannelTimeoutTask channelTimeoutTask,
DataChannel channel,
int timeoutMs) |
NamedChannelWithTimeout(RepNode repNode,
DataChannel channel,
int timeoutMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isActive(long timeMs)
Method invoked by the time thread to check on the channel on a periodic
basis.
|
int |
read(ByteBuffer dst) |
void |
setTimeoutMs(int timeoutMs)
Used to modify the timeout associated with the channel.
|
getChannel, getNameIdPair, isOpen, setNameIdPair, toString, writepublic NamedChannelWithTimeout(RepNode repNode, DataChannel channel, int timeoutMs)
public NamedChannelWithTimeout(RepImpl repImpl, Logger logger, ChannelTimeoutTask channelTimeoutTask, DataChannel channel, int timeoutMs)
public void setTimeoutMs(int timeoutMs)
timeoutMs - the new timeout valuepublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in class NamedChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class NamedChannelIOExceptionpublic boolean isActive(long timeMs)
timeMs - the pseudo timeCopyright © 2024. All rights reserved.