protected class NioConnection.Reader extends java.lang.Object implements java.lang.Runnable, java.io.Closeable, Condition
Modifier and Type | Field and Description |
---|---|
protected boolean |
data_available |
protected CondVar |
data_available_cond |
protected java.util.concurrent.locks.Lock |
lock |
protected boolean |
running |
protected NioConnection.State |
state |
protected java.lang.Thread |
thread |
Modifier | Constructor and Description |
---|---|
protected |
Reader() |
Modifier and Type | Method and Description |
---|---|
protected void |
_run() |
protected void |
clear(int op) |
void |
close() |
boolean |
isMet()
Return true if the condition is met and false otherwise
|
boolean |
isRunning() |
void |
receive()
Called by the selector when data is ready to be read from the SocketChannel
|
protected void |
register(int op) |
void |
run() |
protected void |
start() |
protected void |
state(NioConnection.State st) |
protected void |
stop() |
protected final java.util.concurrent.locks.Lock lock
protected NioConnection.State state
protected volatile boolean data_available
protected final CondVar data_available_cond
protected volatile java.lang.Thread thread
protected volatile boolean running
protected void start()
protected void stop()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public boolean isMet()
Condition
public boolean isRunning()
public void receive()
public void run()
run
in interface java.lang.Runnable
protected void _run()
protected void register(int op)
protected void clear(int op)
protected void state(NioConnection.State st)
Copyright © 1998-2020 Red Hat. All Rights Reserved.