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

com.arangodb.shaded.vertx.core.TimeoutStream Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
/*
 * Copyright (c) 2011-2019 Contributors to the Eclipse Foundation
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
 * which is available at https://www.apache.org/licenses/LICENSE-2.0.
 *
 * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
 */

package com.arangodb.shaded.vertx.core;

import com.arangodb.shaded.vertx.codegen.annotations.VertxGen;
import com.arangodb.shaded.vertx.core.streams.ReadStream;

/**
 * A timeout stream is triggered by a timer, the {@link com.arangodb.shaded.vertx.core.Handler} will be call when the timer is fired,
 * it can be once or several times depending on the nature of the timer related to this stream. The
 * {@link ReadStream#endHandler(Handler)} will be called after the timer handler has been called.
 * 

* Pausing the timer inhibits the timer shots until the stream is resumed. Setting a null handler callback cancels * the timer. * * @author Julien Viet * @deprecated instead using {@link Vertx#setTimer}/{@link Vertx#setPeriodic}, Rx java like integrations should use * the Vert.s scheduler integration */ @Deprecated() @VertxGen public interface TimeoutStream extends ReadStream { @Override TimeoutStream exceptionHandler(Handler handler); @Override TimeoutStream handler(Handler handler); @Override TimeoutStream pause(); @Override TimeoutStream resume(); @Override TimeoutStream fetch(long amount); @Override TimeoutStream endHandler(Handler endHandler); /** * Cancels the timeout. Note this has the same effect as calling {@link #handler(Handler)} with a null * argument. */ void cancel(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy