com.quotemedia.streamer.client.util.Wasync Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of streamerclient-java-core Show documentation
Show all versions of streamerclient-java-core Show documentation
Java streaming client that provides easy-to-use client APIs to connect and subscribe to QuoteMedia's market data streaming services. https://quotemedia.com/
The newest version!
package com.quotemedia.streamer.client.util;
import com.quotemedia.streamer.client.Stream;
import org.atmosphere.wasync.Request;
public final class Wasync {
private Wasync() {
}
public static final Request.TRANSPORT map(final Stream.TRANSPORT in) {
if (in == null) {
return null;
}
switch (in) {
case WEBSOCKET:
return Request.TRANSPORT.WEBSOCKET;
case STREAMING:
return Request.TRANSPORT.STREAMING;
default:
throw new IllegalArgumentException(String.format("No mapping defined for '%s'.", in));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy