setItems method

void setItems(
  1. List<String>? items
)

Setter method that sets the "Item List" to be subscribed to through Lightstreamer Server.

Any call to this method will override any "Item List" or "Item Group" previously specified.

Lifecycle This method can only be called while the MpnSubscription instance is in its "inactive" state.

Notification A change to this setting will be notified through a call to MpnSubscriptionListener.onPropertyChanged with argument group on any MpnSubscriptionListener listening to the related MpnSubscription.

  • items an array of items to be subscribed to through the server.

Throws IllegalArgumentException if any of the item names in the "Item List" contains a space or is a number or is empty/null.

Throws IllegalStateException if the MpnSubscription is currently "active".

Implementation

external void setItems(List<String>? items);