Package COM.activesw.api.client
Class BrokerSubscription
java.lang.Object
COM.activesw.api.client.BrokerSubscription
This class is a data structure used to describe a subscription.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe event type name.The filter string.int
The subscription id for this subscription. -
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty subscription objectBrokerSubscription
(int id, String type_name, String filter_string) Create a subscription object setting all three parameters, sub_id, event_type_name, and filter.BrokerSubscription
(String type_name, String filter_string) Create a subscription object with event_type_name and filter set. -
Method Summary
-
Field Details
-
sub_id
public int sub_idThe subscription id for this subscription. Must be a non-negative number. -
event_type_name
The event type name. -
filter
The filter string. For example "cost < 300.00
" or "(total >= 300.00) and (state = "CA")
"
-
-
Constructor Details
-
BrokerSubscription
public BrokerSubscription()Create an empty subscription object -
BrokerSubscription
Create a subscription object with event_type_name and filter set. sub_id is set to zero. -
BrokerSubscription
Create a subscription object setting all three parameters, sub_id, event_type_name, and filter.
-
-
Method Details
-
toString
Convert to string. -
toString
Convert to string. The "indent_level" is the number of 4-space indents that the output should be generated for. -
toString
Convert to string. The "indent_level" is the number of 4-space indents that the output should be generated for. If include_sub_id is false, the subscription's id will not be included in the output.
-