Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 299871f70c5473dfde8337fbd3ea8a186f97cd7e (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
/*******************************************************************************
 * Copyright (c) 2014 Composent, Inc. 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: Scott Lewis - initial API and implementation
 ******************************************************************************/
package com.mycorp.examples.timeservice;

import java.util.concurrent.CompletableFuture;

public interface ITimeServiceAsync {

	/**
	 * Get current time using Java 8 {@link CompletableFuture}.
	 * 
	 * @return CompletableFuture<Long> The future value time in milliseconds since Jan 1, 1970. Will not
	 *         return <code>null</code>.
	 */
	public CompletableFuture<Long> getCurrentTimeAsync();

}

Back to the top