jdk/src/share/sample/nio/chatserver/ClientReader.java
changeset 21278 ef8a3a2a72f2
parent 10292 ed7db6a12c2a
child 21591 35320b590d9b
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
    56     public boolean acceptsMessages() {
    56     public boolean acceptsMessages() {
    57         return callback.acceptsMessages();
    57         return callback.acceptsMessages();
    58     }
    58     }
    59 
    59 
    60     /**
    60     /**
    61      * Runs a cycle of doing a beforeRead action and then enqueing a new
    61      * Runs a cycle of doing a beforeRead action and then inquiring a new
    62      * read on the client. Handles closed channels and errors while reading.
    62      * read on the client. Handles closed channels and errors while reading.
    63      * If the client is still connected a new round of actions are called.
    63      * If the client is still connected a new round of actions are called.
    64      */
    64      */
    65     public void run(final Client client) {
    65     public void run(final Client client) {
    66         callback.beforeRead(client);
    66         callback.beforeRead(client);