- java.lang.Object
-
- com.sleepycat.je.rep.utilint.NamedChannel
-
- All Implemented Interfaces:
- java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.ByteChannel, java.nio.channels.Channel, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel
- Direct Known Subclasses:
- NamedChannelWithTimeout
public class NamedChannel
extends java.lang.Object
implements java.nio.channels.ByteChannel
Packages a SocketChannel and a NameIdPair together so that logging
messages can show the node name instead of the channel toString();
-
-
Field Summary
Fields
| Modifier and Type |
Field and Description |
protected java.nio.channels.SocketChannel |
channel |
-
Constructor Summary
Constructors
| Constructor and Description |
NamedChannel(java.nio.channels.SocketChannel channel) |
NamedChannel(java.nio.channels.SocketChannel channel,
NameIdPair nameIdPair) |
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
Method Detail
-
isOpen
public boolean isOpen()
- Specified by:
isOpen in interface java.nio.channels.Channel
Copyright (c) 2004-2012 Oracle. All rights reserved.