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
ConstructorDescriptionTimedWritableByteChannel
(WritableByteChannel measured, com.codahale.metrics.Timer timer) -
Method Summary
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 Details
-
TimedWritableByteChannel
-
-
Method Details
-
write
- Specified by:
write
in interfaceWritableByteChannel
- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceTimerDecorated
- Overrides:
close
in classTimedResource<WritableByteChannel>
- Throws:
IOException
-