Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 823d1d3ccfe8f85dd3f6a4ad6f68b4fb9927b1b0 (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
/****************************************************************************
 * Copyright (c) 2013 Composent, Inc.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * Contributors: Scott Lewis - initial API and implementation
 *
 * SPDX-License-Identifier: EPL-2.0
 *****************************************************************************/
package com.mycorp.examples.timeservice;

/**
 * Example OSGi service for retrieving current time in milliseconds from January
 * 1, 1970.
 * 
 */
public interface ITimeService {

	/**
	 * Get current time.
	 * 
	 * @return Long current time in milliseconds since Jan 1, 1970. Will not
	 *         return <code>null</code>.
	 */
	public Long getCurrentTime();

}

Back to the top