public class BlockingIO extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BlockingIO.Condition |
Constructor and Description |
---|
BlockingIO() |
Modifier and Type | Method and Description |
---|---|
static void |
awaitReadable(ReadableByteChannel channel) |
static void |
awaitWritable(WritableByteChannel channel) |
static int |
blockingRead(ReadableByteChannel channel,
ByteBuffer buf) |
static int |
blockingWrite(WritableByteChannel channel,
ByteBuffer buf) |
static BlockingIO.Condition |
newCondition(Channel channel,
int ops) |
static BlockingIO.Condition |
newCondition(Channel channel,
int ops,
Object monitor) |
static int |
read(ReadableByteChannel channel,
ByteBuffer buf,
boolean blocking) |
static void |
waitForIO(Channel channel,
int op) |
static int |
write(WritableByteChannel channel,
ByteBuffer buf,
boolean blocking) |
public static final BlockingIO.Condition newCondition(Channel channel, int ops, Object monitor) throws IOException
IOException
public static final BlockingIO.Condition newCondition(Channel channel, int ops) throws IOException
IOException
public static void waitForIO(Channel channel, int op) throws InterruptedException, IOException
InterruptedException
IOException
public static void awaitReadable(ReadableByteChannel channel) throws InterruptedException, IOException
InterruptedException
IOException
public static void awaitWritable(WritableByteChannel channel) throws InterruptedException, IOException
InterruptedException
IOException
public static int read(ReadableByteChannel channel, ByteBuffer buf, boolean blocking) throws IOException
IOException
public static int write(WritableByteChannel channel, ByteBuffer buf, boolean blocking) throws IOException
IOException
public static int blockingRead(ReadableByteChannel channel, ByteBuffer buf) throws IOException
IOException
public static int blockingWrite(WritableByteChannel channel, ByteBuffer buf) throws IOException
IOException
Copyright © 2001-2015 JRuby. All Rights Reserved.