
estonlabs.cxtl.exchanges.a.specification.lib.StreamFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cxtl Show documentation
Show all versions of cxtl Show documentation
CXTL – Crypto eXchange Trading Library
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