org.mortbay.jetty.grizzly
Class GrizzlySocketChannel

java.lang.Object
  extended by org.mortbay.jetty.grizzly.GrizzlySocketChannel
All Implemented Interfaces:
java.io.Closeable, java.nio.channels.ByteChannel, java.nio.channels.Channel, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel

public class GrizzlySocketChannel
extends java.lang.Object
implements java.nio.channels.ByteChannel

Author:
Jeanfrancois Arcand

Constructor Summary
GrizzlySocketChannel()
           
 
Method Summary
 void close()
           
 long getReadTimeout()
           
 java.nio.channels.SelectionKey getSelectionKey()
           
 java.nio.channels.SocketChannel getSocketChannel()
           
 long getWriteTimeout()
           
 boolean isOpen()
           
 int read(java.nio.ByteBuffer dst)
           
 void setReadTimeout(long readTimeout)
           
 void setSelectionKey(java.nio.channels.SelectionKey key)
           
 void setSocketChannel(java.nio.channels.SocketChannel socketChannel)
           
 void setWriteTimeout(long writeTimeout)
           
 int write(java.nio.ByteBuffer src)
           
 int write(java.nio.ByteBuffer[] src)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrizzlySocketChannel

public GrizzlySocketChannel()
Method Detail

read

public int read(java.nio.ByteBuffer dst)
         throws java.io.IOException
Specified by:
read in interface java.nio.channels.ReadableByteChannel
Throws:
java.io.IOException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface java.nio.channels.Channel

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface java.nio.channels.Channel
Throws:
java.io.IOException

write

public int write(java.nio.ByteBuffer src)
          throws java.io.IOException
Specified by:
write in interface java.nio.channels.WritableByteChannel
Throws:
java.io.IOException

write

public int write(java.nio.ByteBuffer[] src)
          throws java.io.IOException
Throws:
java.io.IOException

getSocketChannel

public java.nio.channels.SocketChannel getSocketChannel()

setSocketChannel

public void setSocketChannel(java.nio.channels.SocketChannel socketChannel)

getSelectionKey

public java.nio.channels.SelectionKey getSelectionKey()

setSelectionKey

public void setSelectionKey(java.nio.channels.SelectionKey key)

getReadTimeout

public long getReadTimeout()

setReadTimeout

public void setReadTimeout(long readTimeout)

getWriteTimeout

public long getWriteTimeout()

setWriteTimeout

public void setWriteTimeout(long writeTimeout)


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.