/*
 * @(#)TelnetTaskTimeoutEvent.java
 *
 * Copyright (c) 2001-2002 JScape
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JScape. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JScape.
 */

package com.jscape.inet.telnet;

import java.util.EventObject;

/**
 * Fired when a <code>TelnetTask</code> has exceeded the defined timeout
 *
 * @see TelnetTask
 */
public class TelnetTaskTimeoutEvent
        extends EventObject {

    private TelnetTask task = null;

    /**
     * Creates a new instance of TelnetTaskEndEvent
     *
     * @param source the source of the event
     * @param task   the <code>TelnetTask</code> that has completed
     *
     * @see TelnetTask
     */
    public TelnetTaskTimeoutEvent(Object source, TelnetTask task) {
        super(source);
        this.task = task;
    }

    /**
     * Gets the TelnetTask that has timed out.
     *
     * @return a <code>TelnetTask</code>
     */
    public TelnetTask getTask() {
        return task;
    }
}
