Permalink
Browse files

[#872] AbstractNioByteChannel and AbstractNioMessageChannel should be…

… public
  • Loading branch information...
1 parent 85c2ec1 commit 62bf3d6af6732bc7e94ef2586d998a545f4f2fd4 @normanmaurer normanmaurer committed with Andrei-Pozolotin Dec 30, 2012
@@ -32,7 +32,7 @@
/**
* {@link AbstractNioChannel} base class for {@link Channel}s that operate on bytes.
*/
-abstract class AbstractNioByteChannel extends AbstractNioChannel {
+public abstract class AbstractNioByteChannel extends AbstractNioChannel {
/**
* Create a new instance
@@ -163,7 +163,7 @@ protected void doFlushFileRegion(final FileRegion region, final ChannelFuture fu
this.future = future;
}
- public void transfer() {
+ void transfer() {
try {
for (;;) {
long localWrittenBytes = region.transferTo(wch, writtenBytes);
@@ -154,8 +154,19 @@ void setInputShutdown() {
* Special {@link Unsafe} sub-type which allows to access the underlying {@link SelectableChannel}
*/
public interface NioUnsafe extends Unsafe {
+ /**
+ * Return underlying {@link SelectableChannel}
+ */
SelectableChannel ch();
+
+ /**
+ * Finish connect
+ */
void finishConnect();
+
+ /**
+ * Read from underlying {@link SelectableChannel}
+ */
void read();
}
@@ -25,7 +25,7 @@
/**
* {@link AbstractNioChannel} base class for {@link Channel}s that operate on messages.
*/
-abstract class AbstractNioMessageChannel extends AbstractNioChannel {
+public abstract class AbstractNioMessageChannel extends AbstractNioChannel {
/**
* @see {@link AbstractNioChannel#AbstractNioChannel(Channel, Integer, SelectableChannel, int)}

0 comments on commit 62bf3d6

Please sign in to comment.