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

kilim.nio.SessionTask Maven / Gradle / Ivy

Go to download

Coroutines, continuations, fibers, actors and message passing for the JVM

There is a newer version: 2.0.2-jdk7
Show newest version
/* 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); }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy