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

estonlabs.cxtl.exchanges.a.specification.lib.StreamFactory Maven / Gradle / Ivy

The newest version!
package estonlabs.cxtl.exchanges.a.specification.lib;

import estonlabs.cxtl.common.stream.managed.InboundMessage;
import estonlabs.cxtl.common.stream.managed.OutboundMessage;
import estonlabs.cxtl.exchanges.a.specification.domain.Exchange;
import lombok.NonNull;

import java.net.Proxy;
import java.net.URI;
import java.util.function.Supplier;

public interface StreamFactory {
    StreamFactory ping(long pingWindow, @NonNull Supplier pingGenerator);
    StreamFactory ping(long pingWindow, @NonNull Runnable ping, boolean expectPingResponse);

    StreamFactory  pong(Supplier pong);

    StreamFactory  staleWindow(long staleWindow);

    StreamFactory  staleWindow(long staleWindow, boolean startStaleFeedImmediately);

    StreamFactory  httpProxy(URI httpProxy);

    StreamFactory  httpProxy(Proxy httpProxy);

    Exchange getExchange();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy