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

io.vlingo.actors.ResultCompletes Maven / Gradle / Ivy

Go to download

Type safe Actor Model toolkit for reactive concurrency and resiliency using Java and other JVM languages.

There is a newer version: 1.7.5
Show newest version
// Copyright © 2012-2018 Vaughn Vernon. All rights reserved.
//
// This Source Code Form is subject to the terms of the
// Mozilla Public License, v. 2.0. If a copy of the MPL
// was not distributed with this file, You can obtain
// one at https://mozilla.org/MPL/2.0/.

package io.vlingo.actors;

import java.util.function.Consumer;
import java.util.function.Function;

import io.vlingo.common.Completes;

class ResultCompletes implements Completes {
  public Completes __internal__clientCompletes;
  public Object __internal__outcome = null;
  public boolean __internal__outcomeSet = false;

  @Override
  public Completes andThen(final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes andThen(final long timeout, final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes andThen(final Object failedOutcomeValue, final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes andThen(final long timeout, final Object failedOutcomeValue, final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public  O andThenTo(final long timeout, final F failedOutcomeValue, final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public  O andThenTo(final F failedOutcomeValue, final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public  O andThenTo(final long timeout, final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public  O andThenTo(final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes andThenConsume(final Consumer consumer) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes andThenConsume(final long timeout, final Consumer consumer) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes andThenConsume(final Object failedOutcomeValue, final Consumer consumer) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes andThenConsume(final long timeout, final Object failedOutcomeValue, final Consumer consumer) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes otherwise(final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes otherwiseConsume(final Consumer function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes recoverFrom(final Function function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public Object await() {
    throw new UnsupportedOperationException();
  }

  @Override
  public Object await(final long timeout) {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean isCompleted() {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean hasFailed() {
    throw new UnsupportedOperationException();
  }

  @Override
  public void failed() {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean hasOutcome() {
    throw new UnsupportedOperationException();
  }

  @Override
  public Object outcome() {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes repeat() {
    throw new UnsupportedOperationException();
  }

  @Override
  public Completes with(final Object outcome) {
    this.__internal__outcomeSet = true;
    this.__internal__outcome = outcome;
    return this;
  }

  public Completes clientCompletes() {
    return __internal__clientCompletes;
  }

  public void reset(final Completes clientCompletes) {
    this.__internal__clientCompletes = clientCompletes;
    this.__internal__outcome = null;
    this.__internal__outcomeSet = false;
  }
}