Package org.apache.storm.daemon.nimbus
Class TimedWritableByteChannel
- java.lang.Object
-
- org.apache.storm.metric.timed.Timed<T>
-
- org.apache.storm.metric.timed.TimedResource<WritableByteChannel>
-
- org.apache.storm.daemon.nimbus.TimedWritableByteChannel
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel,TimerDecorated
public class TimedWritableByteChannel extends TimedResource<WritableByteChannel> implements WritableByteChannel
-
-
Constructor Summary
Constructors Constructor Description TimedWritableByteChannel(WritableByteChannel measured, com.codahale.metrics.Timer timer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisOpen()intwrite(ByteBuffer src)-
Methods inherited from class org.apache.storm.metric.timed.Timed
getMeasured, stopTiming
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.storm.metric.timed.TimerDecorated
stopTiming
-
-
-
-
Constructor Detail
-
TimedWritableByteChannel
public TimedWritableByteChannel(WritableByteChannel measured, com.codahale.metrics.Timer timer)
-
-
Method Detail
-
write
public int write(ByteBuffer src) throws IOException
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceTimerDecorated- Overrides:
closein classTimedResource<WritableByteChannel>- Throws:
IOException
-
-