public class TimedWritableByteChannel extends TimedResource<WritableByteChannel> implements WritableByteChannel
| Constructor and Description |
|---|
TimedWritableByteChannel(WritableByteChannel measured,
com.codahale.metrics.Timer timer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
write(ByteBuffer src) |
getMeasured, stopTimingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstopTimingpublic TimedWritableByteChannel(WritableByteChannel measured, com.codahale.metrics.Timer timer)
public int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in interface TimerDecoratedclose in class TimedResource<WritableByteChannel>IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.