kilim.nio.SessionTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kilim Show documentation
Show all versions of kilim Show documentation
Coroutines, continuations, fibers, actors and message passing for the JVM
/* Copyright (c) 2006, Sriram Srinivasan
*
* You may distribute this software under the terms of the license
* specified in the file "License"
*/
package kilim.nio;
import java.io.IOException;
import kilim.Task;
public class SessionTask extends Task {
public EndPoint endpoint;
public void close() {
if (endpoint != null) {
IOException ex = endpoint.close2();
if (ex != null) Sched.log(getScheduler(),this,ex);
}
}
private static class Sched extends kilim.AffineThreadPool {
static void log(kilim.Scheduler sched,Object src,Object obj) { logRelay(sched,src,obj); }
}
}