
io.muserver.DoneCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mu-server Show documentation
Show all versions of mu-server Show documentation
A simple but powerful web server framework
The newest version!
package io.muserver;
/**
* A callback for async operations that calls when an operation completes.
*/
public interface DoneCallback {
/**
* The operation has completed.
*
* @param error If null
, then the operation was a success. Otherwise it failed.
* @throws Exception The result of throwing an exception depends on the operation, and may include actions such as
* disconnecting the client.
*/
void onComplete(Throwable error) throws Exception;
/**
* A callback that does nothing on completion.
*/
DoneCallback NoOp = error -> {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy