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

com.quotemedia.streamer.client.util.Wasync Maven / Gradle / Ivy

Go to download

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