org.dellroad.msrp.SelectorService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of msrp4j Show documentation
Show all versions of msrp4j Show documentation
msrp4j is a Java library for the MSRP protocol defined by RFC 4975.
/*
* 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