com.oracle.common.base.Continuation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence Show documentation
Show all versions of coherence Show documentation
Oracle Coherence Community Edition
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.oracle.common.base;
/**
* Continuation interface is used to implement asynchronous post-processing,
* the pattern that is also known as the
*
* "Continuation-passing style".
*
* Most commonly, a continuation can be used to encode a single program control
* mechanism (i.e. a logical "return"). Advanced usages may also need to encode
* multiple control mechanisms (e.g. an exceptional execution path). For such
* usages, each control path could be explicitly represented as a separate
* Continuation, e.g.:
*
* void doAsync(Continuation<Result> contNormal, Continuation<Exception> contExceptional);
*
*
* @param the result type
*
* @author gg 02.17.2011
* @deprecated use {@link com.oracle.coherence.common.base.Continuation} instead
*/
@Deprecated
public interface Continuation
extends com.oracle.coherence.common.base.Continuation
{
}