PolygonStreamListenerpublic class PolygonStreamListenerAdapter extends java.lang.Object implements PolygonStreamListener
| Constructor | Description |
|---|---|
PolygonStreamListenerAdapter(java.lang.String ticker,
ChannelType... channelTypes) |
Instantiates a new polygon stream listener adapter.
|
PolygonStreamListenerAdapter(java.util.Map<java.lang.String,java.util.Set<ChannelType>> stockChannelTypes) |
Instantiates a new polygon stream listener adapter.
|
PolygonStreamListenerAdapter(java.util.Set<java.lang.String> tickers,
ChannelType... channelTypes) |
Instantiates a new polygon stream listener adapter.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<java.lang.String,java.util.Set<ChannelType>> |
getStockChannelTypes() |
Gets the stock channel types.
|
void |
streamUpdate(java.lang.String ticker,
ChannelType channelType,
ChannelMessage message) |
Stream update.
|
public PolygonStreamListenerAdapter(java.lang.String ticker,
ChannelType... channelTypes)
ticker - the tickerchannelTypes - the channel typespublic PolygonStreamListenerAdapter(java.util.Set<java.lang.String> tickers,
ChannelType... channelTypes)
tickers - the tickerschannelTypes - the channel typespublic PolygonStreamListenerAdapter(java.util.Map<java.lang.String,java.util.Set<ChannelType>> stockChannelTypes)
stockChannelTypes - the stock channel typespublic java.util.Map<java.lang.String,java.util.Set<ChannelType>> getStockChannelTypes()
PolygonStreamListenergetStockChannelTypes in interface PolygonStreamListenerpublic void streamUpdate(java.lang.String ticker,
ChannelType channelType,
ChannelMessage message)
PolygonStreamListenerstreamUpdate in interface PolygonStreamListenerticker - the tickerchannelType - the channel typemessage - the message