1// BEGIN LICENSE BLOCK
2// Version: CMPL 1.1
3//
4// The contents of this file are subject to the Cisco-style Mozilla Public
5// License Version 1.1 (the "License"); you may not use this file except
6// in compliance with the License.  You may obtain a copy of the License
7// at www.eclipse-clp.org/license.
8//
9// Software distributed under the License is distributed on an "AS IS"
10// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See
11// the License for the specific language governing rights and limitations
12// under the License.
13//
14// The Original Code is  The ECLiPSe Constraint Logic Programming System.
15// The Initial Developer of the Original Code is  Cisco Systems, Inc.
16// Portions created by the Initial Developer are
17// Copyright (C) 2006 Cisco Systems, Inc.  All Rights Reserved.
18//
19// Contributor(s): Andrew Sadler, IC-Parc
20//
21// END LICENSE BLOCK
22
23package com.parctechnologies.eclipse;
24import java.io.*;
25import java.util.*;
26
27/**
28 * Interface defining a listener for entering and leaving multitask
29 * phases.
30 *
31 * @see EclipseMultitaskConnection
32 */
33public interface MultitaskListener {
34  /**
35   * Called when ECLiPSe enters a multitasking phase.
36   *
37   * <p>If a peer is interested in the type of multitasking phase, then
38   * it should call multitaskConfirm() on the
39   * EclipseMultitaskConnection object within this method.
40   *
41   * <p>This method is called before any pending multitasking RPCs */
42  public void starting(EclipseMultitaskConnection eclipse, String type);
43
44  /**
45   * Called when ECLiPSe is leaving a multitasking phase.
46   *
47   * <p>The peer can still perform multitasking RPCs for the
48   * duration of this method call.
49   *
50   * <p>This method is called before any pending RPCs */
51  public void ending(EclipseMultitaskConnection eclipse, String type);
52}
53