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
ConstructorsConstructorDescriptionTimedWritableByteChannel(WritableByteChannel measured, com.codahale.metrics.Timer timer) -
Method Summary
Methods inherited from class org.apache.storm.metric.timed.Timed
getMeasured, stopTimingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.storm.metric.timed.TimerDecorated
stopTiming
-
Constructor Details
-
TimedWritableByteChannel
-
-
Method Details
-
write
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceTimerDecorated- Overrides:
closein classTimedResource<WritableByteChannel>- Throws:
IOException
-