All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dellroad.msrp.SelectorService Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version

/*
 * Copyright (C) 2014 Archie L. Cobbs. All rights reserved.
 */

package org.dellroad.msrp;

import java.io.IOException;
import java.nio.channels.SelectionKey;

interface SelectorService {

    /**
     * Handle ready I/O.
     *
     * @param key selection key
     */
    void serviceIO(SelectionKey key) throws IOException;

    /**
     * Close this service due to an error. Must be idempotent.
     */
    void close(Exception cause);
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy