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, stopTiming
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
stopTiming
public TimedWritableByteChannel(WritableByteChannel measured, com.codahale.metrics.Timer timer)
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in interface TimerDecorated
close
in class TimedResource<WritableByteChannel>
IOException
Copyright © 2023 The Apache Software Foundation. All rights reserved.