Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b08c56d90a819dfd9d40ba1a348d6d678612e063 (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) 2004 Composent, Inc. 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:
 *    Composent, Inc. - initial API and implementation
 *****************************************************************************/

package org.eclipse.ecf.core.sharedobject.events;

import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.util.Event;
import org.eclipse.equinox.concurrent.future.IFuture;

public class SharedObjectCallEvent implements ISharedObjectCallEvent {
	private static final long serialVersionUID = 3904674977264250933L;

	ID sender;

	Event event;

	IFuture result;

	/**
	 * @since 2.0
	 */
	public SharedObjectCallEvent(ID sender, Event evt, IFuture res) {
		super();
		this.sender = sender;
		this.event = evt;
		this.result = res;
	}

	/**
	 * @since 2.0
	 */
	public IFuture getAsyncResult() {
		return result;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ecf.core.events.ISharedObjectEvent#getSenderSharedObjectID()
	 */
	public ID getSenderSharedObjectID() {
		return sender;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ecf.core.events.ISharedObjectEvent#getEvent()
	 */
	public Event getEvent() {
		return event;
	}
}

Back to the top