com.launchdarkly.sdk.server.interfaces.ServiceEndpoints Maven / Gradle / Ivy
Show all versions of launchdarkly-java-server-sdk Show documentation
package com.launchdarkly.sdk.server.interfaces;
import com.launchdarkly.sdk.server.integrations.ServiceEndpointsBuilder;
import java.net.URI;
/**
* Specifies the base service URIs used by SDK components.
*
* See {@link ServiceEndpointsBuilder} for more details on these properties.
*/
public final class ServiceEndpoints {
private URI streamingBaseUri;
private URI pollingBaseUri;
private URI eventsBaseUri;
/**
* Used internally by the SDK to store service endpoints.
* @param streamingBaseUri the base URI for the streaming service
* @param pollingBaseUri the base URI for the polling service
* @param eventsBaseUri the base URI for the events service
*/
public ServiceEndpoints(URI streamingBaseUri, URI pollingBaseUri, URI eventsBaseUri) {
this.streamingBaseUri = streamingBaseUri;
this.pollingBaseUri = pollingBaseUri;
this.eventsBaseUri = eventsBaseUri;
}
/**
* The base URI for the streaming service.
* @return the base URI, or null
*/
public URI getStreamingBaseUri() {
return streamingBaseUri;
}
/**
* The base URI for the polling service.
* @return the base URI, or null
*/
public URI getPollingBaseUri() {
return pollingBaseUri;
}
/**
* The base URI for the events service.
* @return the base URI, or null
*/
public URI getEventsBaseUri() {
return eventsBaseUri;
}
}