SignalHandler.java revision 0
3832N/A/*
3832N/A * Copyright 1998-2006 Sun Microsystems, Inc. All Rights Reserved.
3832N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3832N/A *
3832N/A * This code is free software; you can redistribute it and/or modify it
3832N/A * under the terms of the GNU General Public License version 2 only, as
3832N/A * published by the Free Software Foundation. Sun designates this
3832N/A * particular file as subject to the "Classpath" exception as provided
3832N/A * by Sun in the LICENSE file that accompanied this code.
3832N/A *
3832N/A * This code is distributed in the hope that it will be useful, but WITHOUT
3832N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3832N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3832N/A * version 2 for more details (a copy is included in the LICENSE file that
3832N/A * accompanied this code).
3832N/A *
3832N/A * You should have received a copy of the GNU General Public License version
3832N/A * 2 along with this work; if not, write to the Free Software Foundation,
3832N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3832N/A *
3832N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
3832N/A * CA 95054 USA or visit www.sun.com if you need additional information or
3832N/A * have any questions.
3832N/A */
3832N/A
3832N/Apackage sun.misc;
3832N/A
3832N/A/**
3832N/A * This is the signal handler interface expected in <code>Signal.handle</code>.
3832N/A *
3832N/A * @author Sheng Liang
3832N/A * @author Bill Shannon
3832N/A * @see sun.misc.Signal
3832N/A * @since 1.2
3832N/A */
3832N/A
3832N/Apublic interface SignalHandler {
3832N/A
3832N/A /**
3832N/A * The default signal handler
3832N/A */
3832N/A public static final SignalHandler SIG_DFL = new NativeSignalHandler(0);
3832N/A /**
3832N/A * Ignore the signal
3832N/A */
3832N/A public static final SignalHandler SIG_IGN = new NativeSignalHandler(1);
3832N/A
3832N/A /**
3832N/A * Handle the given signal
3832N/A *
3832N/A * @param sig a signal object
3832N/A */
3832N/A public void handle(Signal sig);
3832N/A}
3832N/A