All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.common.base.Continuation Maven / Gradle / Ivy

There is a newer version: 24.09
Show newest version
/*
 * 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 { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy