|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bloomberglp.blpapi.SubscriptionList
public final class SubscriptionList
Contains a list of subscriptions.
This component provides a structure to hold the data used (and returned) by
the Session.subscribe(com.bloomberglp.blpapi.SubscriptionList)
,
Session.resubscribe(com.bloomberglp.blpapi.SubscriptionList)
, and
Session.unsubscribe(com.bloomberglp.blpapi.SubscriptionList)
methods.
See "STRUCTURE OF SUBSCRIPTION STRING" section in Subscription
for
more information on subscription strings.*
Subscription
are automatically
qualified if the service identifier is missing (i.e. if the subscription
string does not start with "//"). The subscription parameters (i.e. the
optional part after instrument identifier) are never modified.
SessionOptions.getDefaultSubscriptionService()
to the
specified string.
SessionOptions.getDefaultSubscriptionService()
followed by
SessionOptions.getDefaultTopicPrefix()
to the specified string.
If the 'defaultTopicPrefix' is empty or null, then the prefix used is
'/'. Otherwise (in the case of a nontrivial prefix) if the separator '/'
is not specified at the beginning or the end of the 'defaultTopicPrefix',
then it will be added.
Constructor Summary | |
---|---|
SubscriptionList()
Constructs an empty SubscriptionList |
|
SubscriptionList(int initialCapacity)
Constructs an empty SubscriptionList with the specified initialCapacity |
Method Summary | |
---|---|
boolean |
add(Subscription subscription)
Appends the specified subscription to the end of this list |
void |
clear()
Remove all Subscriptions from this SubscriptionList. |
Subscription |
get(int index)
Get the Subscription at the specified index in this SubscriptionList |
boolean |
isEmpty()
Tests if this SubscriptionList has no elements |
java.util.Iterator<Subscription> |
iterator()
Return an iterator over the subscriptions contained in this SubscriptionList |
Subscription |
remove(int index)
Remove the Subscription at the specified index in this SubscriptionList |
int |
size()
Returns the number of Subscriptions in this SubscriptionList |
Subscription[] |
toArray()
Returns an array containing all of the Subscriptions in this SubscriptionList in the correct order |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubscriptionList()
public SubscriptionList(int initialCapacity)
Method Detail |
---|
public boolean add(Subscription subscription)
subscription
- the Subscription that is to be added to this listpublic void clear()
public Subscription get(int index)
index
- the index of the Subscription to return
java.lang.IndexOutOfBoundsException
- if index >= size()
public boolean isEmpty()
public Subscription remove(int index)
index
- the index of the Subscription to remove from this
SubscriptionList
java.lang.IndexOutOfBoundsException
- if index >= size()
public int size()
public Subscription[] toArray()
public java.util.Iterator<Subscription> iterator()
iterator
in interface java.lang.Iterable<Subscription>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |