Package | Description |
---|---|
com.dxfeed.api |
Main package for dxFeed API that provides DXFeed as its core class.
|
com.dxfeed.promise |
Provides
Promise class for request-based APIs that can be used
both synchronously and asynchronously. |
Modifier and Type | Method and Description |
---|---|
abstract <E extends IndexedEvent<?>> |
DXFeed.getIndexedEventsPromise(Class<E> eventType,
Object symbol,
IndexedEventSource source)
Requests a list of indexed events for the specified event type, symbol, and source.
|
abstract <E extends LastingEvent<?>> |
DXFeed.getLastEventPromise(Class<E> eventType,
Object symbol)
Requests the last event for the specified event type and symbol.
|
abstract <E extends TimeSeriesEvent<?>> |
DXFeed.getTimeSeriesPromise(Class<E> eventType,
Object symbol,
long fromTime,
long toTime)
Requests time series of events for the specified event type, symbol, and a range of time.
|
Modifier and Type | Method and Description |
---|---|
abstract <E extends LastingEvent<?>> |
DXFeed.getLastEventsPromises(Class<E> eventType,
Collection<?> symbols)
Requests the last events for the specified event type and a collection of symbols.
|
Modifier and Type | Method and Description |
---|---|
static Promise<Void> |
Promises.allOf(Collection<? extends Promise<?>> promises)
Returns a new promise that
completes when all promises from the given collection
complete normally or exceptionally. |
static Promise<Void> |
Promises.allOf(Promise<?>... promises)
Returns a new promise that
completes when all promises from the given array
complete normally or exceptionally. |
static <T> Promise<T> |
Promises.anyOf(Collection<? extends Promise<T>> promises)
Returns a new promise that
completes when any promise from the given collection
complete normally or exceptionally. |
static <T> Promise<T> |
Promises.anyOf(Promise<T>... promises)
Returns a new promise that
completes when any promise from the given array
complete normally or exceptionally. |
static <T> Promise<T> |
Promise.completed(T result)
Returns new promise that is
completed with a specified result. |
static <T> Promise<T> |
Promise.failed(Throwable exception)
Returns new promise that is
completed exceptionally with a
specified exception. |
Modifier and Type | Method and Description |
---|---|
static Promise<Void> |
Promises.allOf(Promise<?>... promises)
Returns a new promise that
completes when all promises from the given array
complete normally or exceptionally. |
static <T> Promise<T> |
Promises.anyOf(Promise<T>... promises)
Returns a new promise that
completes when any promise from the given array
complete normally or exceptionally. |
void |
PromiseHandler.promiseDone(Promise<? extends T> promise)
|
Modifier and Type | Method and Description |
---|---|
static Promise<Void> |
Promises.allOf(Collection<? extends Promise<?>> promises)
Returns a new promise that
completes when all promises from the given collection
complete normally or exceptionally. |
static <T> Promise<T> |
Promises.anyOf(Collection<? extends Promise<T>> promises)
Returns a new promise that
completes when any promise from the given collection
complete normally or exceptionally. |
Copyright © 2002–2023 Devexperts LLC. All rights reserved.