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 Subscription instance is in its "inactive" state.

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

Throws IllegalStateException if the Subscription is currently "active".

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

Implementation

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