setFields method

void setFields(
  1. List<String>? fields
)

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

Any call to this method will override any "Field List" or "Field Schema" 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 schema on any MpnSubscriptionListener listening to the related MpnSubscription.

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

Throws IllegalArgumentException if any of the field names in the list contains a space or is empty/null.

Throws IllegalStateException if the MpnSubscription is currently "active".

Implementation

external void setFields(List<String>? fields);