public final class ZfpUtil extends Object
The following snippet shows how to use ZfpUtil to start a
Session.
TlsOptions tlsOptions = TlsOptions.createFromFiles( ... ); SessionOptions sessionOptions = ZfpUtil.getZfpOptionsForLeasedLines(Remote.REMOTE_8194, tlsOptions); sessionOptions.setAuthenticationOptions( ... ); Session session = new Session(sessionOptions); session.start();
| Modifier and Type | Class and Description |
|---|---|
static class |
ZfpUtil.Remote |
| Modifier and Type | Method and Description |
|---|---|
static SessionOptions |
getZfpOptionsForLeasedLines(ZfpUtil.Remote remote,
TlsOptions tlsOptions)
Creates a
SessionOptions object for applications that leverages
private leased lines to Bloomberg network. |
public static SessionOptions getZfpOptionsForLeasedLines(ZfpUtil.Remote remote, TlsOptions tlsOptions) throws InterruptedException
SessionOptions object for applications that leverages
private leased lines to Bloomberg network. The SessionOptions
object is only valid for private leased line connectivity.
This is a costly operation that is preferably called once per application.
remote - ZfpUtil.Remote for the leased lines.tlsOptions - TLS options to establish network connection over leased lines.SessionOptions object that can be used to start a
Session for leased lines.InterruptedException - if any thread interrupts the current thread before it finishes
retrieving SessionOptions for leased lines.RuntimeException - if fails to create a valid SessionOptions.Copyright © 2019 Bloomberg L.P.. All rights reserved.