Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e9232f6fe3175ac47f897fcd9f2e9fbc77446391 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
 * Copyright (c) 2009, 2011, 2012 Eike Stepper (Berlin, Germany) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Eike Stepper - initial API and implementation
 */
package org.eclipse.emf.cdo.session.remote;

import org.eclipse.net4j.util.event.IEvent;

/**
 * A generic {@link IEvent event} fired from a {@link CDORemoteSessionManager remote session manager} to indicate
 * {@link CDORemoteSession remote session} activities.
 *
 * @author Eike Stepper
 * @since 2.0
 * @noextend This interface is not intended to be extended by clients.
 * @noimplement This interface is not intended to be implemented by clients.
 */
public interface CDORemoteSessionEvent extends IEvent
{
  /**
   * @since 3.0
   */
  public CDORemoteSessionManager getSource();

  public CDORemoteSession getRemoteSession();

  /**
   * A {@link CDORemoteSessionEvent remote session event} fired from a {@link CDORemoteSessionManager remote session
   * manager} when the {@link CDORemoteSession#isSubscribed() subscription state} of a {@link CDORemoteSession remote
   * session} has changed.
   *
   * @author Eike Stepper
   * @noextend This interface is not intended to be extended by clients.
   * @noimplement This interface is not intended to be implemented by clients.
   */
  public interface SubscriptionChanged extends CDORemoteSessionEvent
  {
    public boolean isSubscribed();
  }

  /**
   * A {@link CDORemoteSessionEvent remote session event} fired from a {@link CDORemoteSessionManager remote session
   * manager} when a {@link MessageReceived#getMessage() message} from a {@link CDORemoteSession remote session} has
   * been received.
   *
   * @author Eike Stepper
   * @since 3.0
   * @noextend This interface is not intended to be extended by clients.
   * @noimplement This interface is not intended to be implemented by clients.
   */
  public interface MessageReceived extends CDORemoteSessionEvent
  {
    public CDORemoteSessionMessage getMessage();
  }
}

Back to the top