Class BrokerEvent
- All Implemented Interfaces:
Serializable
All field_name parameters take fully qualified field names, which are formatted like C or Java variable accessing. Fields in a structure are accessed with a '.' like this "field1.subfield1". Fields in a sequence are accessed with array brackets like this "field2[3]". These can be combined to make complex names such as "field3.x[1][35].a.y[2]".
All event_type_name parameters take fully qualified event type names, such as "MyScope::MyEvent".
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
static final int
protected String
protected String
protected int
protected boolean
static final int
protected boolean
static final int
static final int
static final int
static final int
static final int
protected long
protected String
static final int
static final int
protected COM.activesw.api.client.NativeEvent
protected long
protected long
protected int
protected int
protected int[]
protected BrokerClient
protected BrokerTypeDef
protected byte[]
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerEvent
(BrokerClient client, String event_type_name) Create an event of the appropriate type with an associated client.BrokerEvent
(BrokerClient client, String event_type_name, Class storage_class) Deprecated.As of Java API v6.5.BrokerEvent
(BrokerClient client, String event_type_name, Object storage_object) Deprecated.As of Java API v6.5.BrokerEvent
(BrokerEvent event) Copy constructor.BrokerEvent
(String event_type_name, BrokerClusterPublisher bcp) Create an event of the appropriate type with an associated client from the BrokerClusterPublisher's cluster pool.BrokerEvent
(String event_type_name, BrokerClusterPublisher bcp, Class storage_class) Deprecated.As of Java API v6.5.BrokerEvent
(String event_type_name, BrokerClusterPublisher bcp, Object storage_object) Deprecated.As of Java API v6.5. -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
checkSetEnvField
(String field_name, String full_field_name) void
clear()
Clears all fields of the event so it can be re-used.void
clearField
(String field_name) Clear (un-set) a field in the event.void
clearField
(String field_name, boolean ignoreEx) Clear (un-set) a field in the event.void
clearFieldInternal
(String field_name, boolean ignoreEx) void
Clear the modification flag.static BrokerEvent
fromBinData
(BrokerClient client, byte[] data) static BrokerEvent
fromBinData
(BrokerClient client, byte[] data, String event_type_name) Create an event using a byte array given out by toBinData().void
fromObject
(Object obj) Deprecated.As of Java API v6.5.void
fromObject
(Object obj, boolean readOnly) Deprecated.As of Java API v6.5.Get the type name without the scope qualification.protected COM.activesw.api.client.NativeStruct
getBody()
protected COM.activesw.api.client.NativeFieldIterator
boolean
getBooleanField
(String field_name) Get the value of a boolean field.boolean
getBooleanProperty
(String property_name) boolean[]
getBooleanSeqField
(String field_name, int offset, int max_n) Get the value of a boolean sequence field.byte
getByteField
(String field_name) Get the value of a byte field.byte
getByteProperty
(String property_name) byte[]
getByteSeqField
(String field_name, int offset, int max_n) Get the value of a byte sequence field.char
getCharField
(String field_name) Get the value of a char field.char[]
getCharSeqField
(String field_name, int offset, int max_n) Get the value of a char sequence field.Get the event's client.boolean
getDateField
(String field_name) Get the value of a date field.getDateSeqField
(String field_name, int offset, int max_n) Get the value of a date sequence field.double
getDoubleField
(String field_name) Get the value of a double field.double
getDoubleProperty
(String property_name) double[]
getDoubleSeqField
(String field_name, int offset, int max_n) Get the value of a double sequence field.protected COM.activesw.api.client.NativeStruct
protected COM.activesw.api.client.NativeFieldIterator
getEventField
(String field_name) Get the value of an event field.long
Get the event ID (as set by the broker) for this event.getEventSeqField
(String field_name, int offset, int max_n) Get the value of an event sequence field.Get the value of field.String[]
getFieldNames
(String field_name) Get the list of field names in an event.short
getFieldType
(String field_name) Gets the type for the specified field.float
getFloatField
(String field_name) Get the value of a float field.float
getFloatProperty
(String property_name) float[]
getFloatSeqField
(String field_name, int offset, int max_n) Get the value of a float sequence field.int
getIntegerField
(String field_name) Get the value of an integer field.int[]
getIntegerSeqField
(String field_name, int offset, int max_n) Get the value of an integer sequence field.int
getIntProperty
(String property_name) long
getLongField
(String field_name) Get the value of a long field.long
getLongProperty
(String property_name) long[]
getLongSeqField
(String field_name, int offset, int max_n) Get the value of a long sequence field.protected COM.activesw.api.client.NativeEvent
int
Gets the priority of the event.getProperty
(String property_name) String[]
getPropertyNames
(String field_name) Get the list of property names in an event.long
Get the publishing sequence number for this event.long
Get the receipt sequence number (as set by the broker) for this event.int
Get the redelivery count (as set by the broker) for this event.int
Get the session id on which this event was retrieved.boolean
Get the acknowledgement status of the event.Get the scope of the event type name.getSequenceField
(String field_name, int offset, int max_n) Get the value of a sequence field.int
getSequenceFieldSize
(String field_name) Get the size of a sequence field.short
getShortField
(String field_name) Get the value of a short field.short
getShortProperty
(String property_name) short[]
getShortSeqField
(String field_name, int offset, int max_n) Get the value of a short sequence field.short[]
getShortSeqFieldInternal
(String field_name, int offset, int max_n) Deprecated.As of Java API v6.5.getStringField
(String field_name) Get the value of a string field.getStringProperty
(String property_name) String[]
getStringSeqField
(String field_name, int offset, int max_n) Get the value of a string sequence field.getStructFieldAsEvent
(String field_name) Get the value of a structure field.getStructSeqFieldAsEvents
(String field_name, int offset, int max_n) Get the value of a structure sequence field.int[]
Get the subscription IDs for an event.int
getTag()
Get the event's 'tag' envelope field.Get the event's type definition.Get the fully qualified type name.char
getUCCharField
(String field_name) Get the value of a unicode char field.char[]
getUCCharSeqField
(String field_name, int offset, int max_n) Get the value of a unicode char sequence field.getUCStringField
(String field_name) Get the value of a unicode string field.String[]
getUCStringSeqField
(String field_name, int offset, int max_n) Get the value of a unicode string sequence field.protected byte[]
boolean
Check if event has been modified since last time the modification flag was cleared.boolean
Determine if the given event is an acknowledgement reply.boolean
Determine if the given event is an error reply.boolean
isFieldSet
(String field_name) Determine if the specified field is set in the event.boolean
isFieldSetInternal
(String field_name) boolean
Determines if the given event is the last event in a reply sequence.boolean
Determine if the given event is a 'null' event.void
setBooleanField
(String field_name, boolean value) Sets the value of a boolean field.void
setBooleanProperty
(String property_name, boolean value) void
setBooleanSeqField
(String field_name, int src_offset, int dest_offset, int n, boolean[] value) Sets the value of a subrange of a boolean sequence field.void
setByteField
(String field_name, byte value) Sets the value of a byte field.void
setByteProperty
(String property_name, byte value) void
setByteSeqField
(String field_name, int src_offset, int dest_offset, int n, byte[] value) Sets the value of a subrange of a byte sequence field.void
setCharField
(String field_name, char value) Sets the value of a char field.void
setCharSeqField
(String field_name, int src_offset, int dest_offset, int n, char[] value) Sets the value of a subrange of a char sequence field.void
setClientValidation
(boolean client_validation) This method will enable/disable client side validation.void
setDateField
(String field_name, BrokerDate value) Sets the value of a date field.void
setDateSeqField
(String field_name, int src_offset, int dest_offset, int n, BrokerDate[] value) Sets the value of a subrange of a date sequence field.void
setDoubleField
(String field_name, double value) Sets the value of a double field.void
setDoubleProperty
(String property_name, double value) void
setDoubleSeqField
(String field_name, int src_offset, int dest_offset, int n, double[] value) Sets the value of a subrange of a double sequence field.void
setEventField
(String field_name, BrokerEvent value) Sets the value of an event field.void
setEventSeqField
(String field_name, int src_offset, int dest_offset, int n, BrokerEvent[] value) Set the value of an event sequence field.void
Sets the value of a field.void
setField
(String field_name, BrokerField field) Sets the value of a field.void
setFloatField
(String field_name, float value) Sets the value of a float field.void
setFloatProperty
(String property_name, float value) void
setFloatSeqField
(String field_name, int src_offset, int dest_offset, int n, float[] value) Sets the value of a subrange of a float sequence field.void
setIntegerField
(String field_name, int value) Sets the value of an integer field.void
setIntegerSeqField
(String field_name, int src_offset, int dest_offset, int n, int[] value) Sets the value of a subrange of an integer sequence field.void
setIntProperty
(String property_name, int value) void
setLongField
(String field_name, long value) Sets the value of a long field.void
setLongProperty
(String property_name, long value) void
setLongSeqField
(String field_name, int src_offset, int dest_offset, int n, long[] value) Sets the value of a subrange of a long sequence field.void
Set the modification flag.void
setNullProperty
(String property_name, String value) void
setPriority
(int priority) Sets the priority of the event.void
setPublishSequenceNumber
(long seqn) Set the publishing sequence number for this event.void
setSequenceField
(String field_name, short field_type, int src_offset, int dest_offset, int n, Object value) Sets the value of a subrange of a sequence field.void
setSequenceFieldSize
(String field_name, int size) Set the size of a sequence field.void
setShortField
(String field_name, short value) Sets the value of a short field.void
setShortProperty
(String property_name, short value) void
setShortSeqField
(String field_name, int src_offset, int dest_offset, int n, short[] value) Sets the value of a subrange of a short sequence field.void
setStringField
(String field_name, String value) Sets the value of a string field.void
setStringFieldToSubstring
(String field_name, int offset, int nc, String value) Sets the value of a string field to a substring of another string.void
setStringProperty
(String property_name, String value) void
setStringSeqField
(String field_name, int src_offset, int dest_offset, int n, String[] value) Sets the value of a subrange of a string sequence field.void
setStructFieldFromEvent
(String field_name, BrokerEvent value) Sets the value of a structure field.void
setStructSeqFieldFromEvents
(String field_name, int src_offset, int dest_offset, int n, BrokerEvent[] value) Sets the value of a structure sequence field.void
setTag
(int tag) Set the event's 'tag' envelope field.void
setTypeName
(String event_type_name) void
setUCCharField
(String field_name, char value) Sets the value of a unicode char field.void
setUCCharSeqField
(String field_name, int src_offset, int dest_offset, int n, char[] value) Sets the value of a subrange of a unicode char sequence field.void
setUCStringField
(String field_name, String value) Sets the value of a unicode string field.void
setUCStringFieldToSubstring
(String field_name, int offset, int nc, String value) Sets the value of a unicode string field to a substring of another string.void
setUCStringSeqField
(String field_name, int src_offset, int dest_offset, int n, String[] value) Sets the value of a subrange of a unicode string sequence field.void
setWireEvent
(byte[] w_event) static String
stringFromANSI
(String st) Convert a String object which contains only ANSI 8-bit characters, to another String which contains unicode characters.static String
stringToANSI
(String st) Convert a String object to another String which only contains characters which cleanly map to ANSI 8-bit characters.byte[]
Get out the event's data as a byte array.toFormattedString
(String formatString) Format an event string.toFormattedString
(String formatString, Locale locale) Format an event string.toLocalizedFormattedString
(String formatString) Format an event string.Get event content as a string which includes newlines formatted for the default locale.void
Deprecated.As of Java API v6.5.toString()
Get event content as a string which includes newlines formatted for the US English locale.toString
(int indent_level) Get event content as a string suitable for human viewing formatted for the US English locale.Get event content as a string suitable for human viewing formatted for the specified locale.Get event content as a string which includes newlines formatted for the specified locale.byte[]
void
validate
(BrokerClient client) Validate event in the context of the specified client.
-
Field Details
-
ENTIRE_SEQUENCE
public static final int ENTIRE_SEQUENCE- See Also:
-
AUTO_SIZE
public static final int AUTO_SIZE- See Also:
-
ENVELOPE_FLAGS_INSERTED_EVENT
public static final int ENVELOPE_FLAGS_INSERTED_EVENT- See Also:
-
ENVELOPE_FLAGS_LOGGED_EVENT
public static final int ENVELOPE_FLAGS_LOGGED_EVENT- See Also:
-
ENVELOPE_FLAGS_OPEN_VALIDATION
public static final int ENVELOPE_FLAGS_OPEN_VALIDATION- See Also:
-
ENVELOPE_FLAGS_NO_VALIDATION
public static final int ENVELOPE_FLAGS_NO_VALIDATION- See Also:
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITY- See Also:
-
HIGH_PRIORITY
public static final int HIGH_PRIORITY- See Also:
-
LOW_PRIORITY
public static final int LOW_PRIORITY- See Also:
-
native_event
protected transient COM.activesw.api.client.NativeEvent native_event -
wire_event
protected transient byte[] wire_event -
sub_ids
protected transient int[] sub_ids -
pub_seqn
protected transient long pub_seqn -
recv_seqn
protected transient long recv_seqn -
redelivery_count
protected transient int redelivery_count -
client_validation
protected transient boolean client_validation -
event_id
protected transient long event_id -
event_type_name
-
the_client
-
broker_host
-
broker_name
-
broker_port
protected transient int broker_port -
dirty
protected transient boolean dirty -
type_def
-
ack_status
protected transient boolean ack_status -
session_id
protected transient int session_id
-
-
Constructor Details
-
BrokerEvent
Create an event of the appropriate type with an associated client. If the client is specified, the event will be typechecked and all fields in the type definition will appear to be there at all times. If the client is null, the event will not be typechecked and only fields which have actively been set will appear in the event.- Throws:
BrokerInvalidEventTypeNameException
- If the type name is not valid.BrokerNoPermissionException
- If a client is specified and the client does not have permission to publish or subscribe to the event type.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If a client is specified and the broker does not have an event type with the specified name.BrokerException
-
BrokerEvent
public BrokerEvent(BrokerClient client, String event_type_name, Class storage_class) throws BrokerException Deprecated.As of Java API v6.5.Create an event of the appropriate type with the associated client and Java class.If both a client and a class are provided, the event will be typechecked and all fields in the type definition that also appear in the Java class will appear to be there at all times. Fields that appear only in the type definition are not accessible. Field types in the class must match exactly. There is no implicit type conversion.
If no client is provided, then fields will still be typechecked, but only ones in the Java class will be accessible.
- Throws:
BrokerFieldNotFoundException
- If the event is typechecked and a public data member exists in the class when there is no field in the event type using the same name.BrokerFieldTypeMismatchException
- If the event is typechecked and a data member in the class is a different type than the same field in the event type.BrokerInvalidClassException
- If the storage_class cannot be instantiated using the Class.newInstance() method.BrokerInvalidEventTypeNameException
- If the type name is not valid.BrokerNoPermissionException
- If a client is specified and the client does not have permission to publish or subscribe to the event type. Or if the class provided cannot be instantiated.BrokerNullParameterException
- If event_type_name or storage_class are null.BrokerUnknownEventTypeException
- If a client is specified and the broker does not have an event type with the specified name.BrokerException
-
BrokerEvent
public BrokerEvent(BrokerClient client, String event_type_name, Object storage_object) throws BrokerException Deprecated.As of Java API v6.5.Create an event of the appropriate type with the associated client and Java object. The Java object is itself used for storage by this event instance. If both a client and an object are provided, the event will be typechecked and all fields in the type definition that also appear in the Java object will appear to be there at all times. Fields that appear only in the object or only in the type definition are not accessible. Field types in the class must match exactly. There is no implicit type conversion. If no client is provided, then fields will still be typechecked, but only ones in the Java object will be accessible.- Throws:
BrokerFieldNotFoundException
- If the event is typechecked and a public data member exists in the object's class when there is no field in the event type using the same name.BrokerFieldTypeMismatchException
- If the event is typechecked and a data member in the object's class is a different type than the same field in the event type.BrokerInvalidEventTypeNameException
- If the type name is not valid.BrokerNoPermissionException
- If a client is specified and the client does not have permission to publish or subscribe to the event type.BrokerNullParameterException
- If event_type_name or storage_object are null.BrokerUnknownEventTypeException
- If a client is specified and the broker does not have an event type with the specified name.BrokerException
-
BrokerEvent
Create an event of the appropriate type with an associated client from the BrokerClusterPublisher's cluster pool. If the cluster publisher is specified, the event will be typechecked and all fields in the type definition will appear to be there at all times. If the cluster publisher is null, the event will not be typechecked and only fields which have actively been set will appear in the event.- Throws:
BrokerInvalidEventTypeNameException
- If the type name is not valid.BrokerNoPermissionException
- If a client is specified and the client does not have permission to publish or subscribe to the event type.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If a client is specified and the broker does not have an event type with the specified name.BrokerClusterPublisherException
- If no broker is available on the cluster pool.BrokerException
-
BrokerEvent
public BrokerEvent(String event_type_name, BrokerClusterPublisher bcp, Class storage_class) throws BrokerException Deprecated.As of Java API v6.5.Create an event of the appropriate type with an associated client from the BrokerClusterPublisher's cluster pool and Java class.If both a cluster publisher and a class are provided, the event will be typechecked and all fields in the type definition that also appear in the Java class will appear to be there at all times. Fields that appear only in the type definition are not accessible. Field types in the class must match exactly. There is no implicit type conversion.
If no cluster publisher is provided, then fields will still be typechecked, but only ones in the Java class will be accessible.
- Throws:
BrokerFieldNotFoundException
- If the event is typechecked and a public data member exists in the class when there is no field in the event type using the same name.BrokerFieldTypeMismatchException
- If the event is typechecked and a data member in the class is a different type than the same field in the event type.BrokerInvalidClassException
- If the storage_class cannot be instantiated using the Class.newInstance() method.BrokerInvalidEventTypeNameException
- If the type name is not valid.BrokerNoPermissionException
- If a client is specified and the client does not have permission to publish or subscribe to the event type. Or if the class provided cannot be instantiated.BrokerNullParameterException
- If event_type_name or storage_class are null.BrokerUnknownEventTypeException
- If a client is specified and the broker does not have an event type with the specified name.BrokerClusterPublisherException
- If no broker is available on the cluster pool.BrokerException
-
BrokerEvent
public BrokerEvent(String event_type_name, BrokerClusterPublisher bcp, Object storage_object) throws BrokerException Deprecated.As of Java API v6.5.Create an event of the appropriate type with the associated client from the BrokerClusterPublisher's cluster pool and Java object. The Java object is itself used for storage by this event instance. If both a cluster publisher and an object are provided, the event will be typechecked and all fields in the type definition that also appear in the Java object will appear to be there at all times. Fields that appear only in the object or only in the type definition are not accessible. Field types in the class must match exactly. There is no implicit type conversion. If no cluster publisher is provided, then fields will still be typechecked, but only ones in the Java object will be accessible.- Throws:
BrokerFieldNotFoundException
- If the event is typechecked and a public data member exists in the object's class when there is no field in the event type using the same name.BrokerFieldTypeMismatchException
- If the event is typechecked and a data member in the object's class is a different type than the same field in the event type.BrokerInvalidEventTypeNameException
- If the type name is not valid.BrokerNoPermissionException
- If a client is specified and the client does not have permission to publish or subscribe to the event type.BrokerNullParameterException
- If event_type_name or storage_object are null.BrokerUnknownEventTypeException
- If a client is specified and the broker does not have an event type with the specified name.BrokerClusterPublisherException
- If no broker is available on the cluster pool.BrokerException
-
BrokerEvent
Copy constructor.- Throws:
BrokerNullParameterException
- If event is null.BrokerException
-
-
Method Details
-
getTypeName
Get the fully qualified type name. -
setTypeName
- Throws:
BrokerException
-
getBaseTypeName
Get the type name without the scope qualification. -
getScopeTypeName
Get the scope of the event type name. -
getClient
Get the event's client. Returns null if the event is not associated with a client. -
getTypeDef
Get the event's type definition.- Throws:
BrokerInvalidTypeDefException
- If the event is not associated with a valid client.BrokerException
-
getStorageObject
Deprecated.As of Java API v6.5.Get the storage object used by the event if the event was created using a Java object for storage. Returns null if the event is using internal storage.If the event was created with an object instance, that instance will be returned. If the event was created with a Java class, the instance of that class created for the event will be returned.
-
toObject
Deprecated.As of Java API v6.5.Sets all the fields from the current event into the given object. This method can be used to copy the contents of an event into an object for you. If the event is typechecked, then unset fields in the type definition are copied using their default values and any indicator ('$') data members are set appropriately.- Throws:
BrokerNullParameterException
- If obj is null.BrokerFieldNotFoundException
- If a public data member exists in the object's class when there is no field in the event type using the same name.BrokerFieldTypeMismatchException
- If a public data member of the object's class has a different type than the field in the event type.BrokerException
-
fromObject
Deprecated.As of Java API v6.5.Gets all the fields from the given object and sets them into the event. This method can be used to copy an object into an event for you. If any indicator ('$') data members on the class exist and are false, those fields are not set in the event.- Throws:
BrokerNullParameterException
- If obj is null.BrokerFieldNotFoundException
- If the event is typechecked and a public data member exists in the object's class when there is no field in the event type using the same name.BrokerFieldTypeMismatchException
- If the event is typechecked and a data member in the object's class is a different type than the same field in the event type.BrokerException
-
fromObject
Deprecated.As of Java API v6.5.Gets all the fields from the given object and sets them into the event. This method can be used to copy an object into an event for you. If any indicator ('$') data members on the class exist and are false, those fields are not set in the event.- Throws:
BrokerNullParameterException
- If obj is null.BrokerFieldNotFoundException
- If the event is typechecked and a public data member exists in the object's class when there is no field in the event type using the same name.BrokerFieldTypeMismatchException
- If the event is typechecked and a data member in the object's class is a different type than the same field in the event type.BrokerException
-
getPublishSequenceNumber
public long getPublishSequenceNumber()Get the publishing sequence number for this event. -
setPublishSequenceNumber
public void setPublishSequenceNumber(long seqn) Set the publishing sequence number for this event. This is called prior to publishing an event. A zero or negative value (or not calling this) indicates to the Broker that you do not wish the publish sequence numbering rules to be applied to this event. Non-zero events are discarded by the broker if they have a sequence number less than or equal to the highest number already processed by the broker for this client. -
getReceiptSequenceNumber
public long getReceiptSequenceNumber()Get the receipt sequence number (as set by the broker) for this event. Always zero if not received from the broker, or for events being stored volatile in the broker. -
getRedeliveryCount
public int getRedeliveryCount()Get the redelivery count (as set by the broker) for this event. Always -1 if redelivery counting is not done, or for events being stored volatile in the broker. -
getEventId
public long getEventId()Get the event ID (as set by the broker) for this event. Always zero if not received from the broker, or if the event was published by a client using a pre-3.0 release of the product. -
getRetrievedStatus
Get the acknowledgement status of the event. For use only on events that are returned as a result of peek request. Returns true if the event was retrieved by one of the client sessions. Otherwise, returns false.- Throws:
BrokerNotImplementedException
- If the event was not a result of a peek operation.BrokerException
-
getRetrievedSessionId
Get the session id on which this event was retrieved. For use only on events that are returned as a result of peek request. Returns the session id of the client session that retrieved this event.- Throws:
BrokerNotImplementedException
- If the event was not a result of a peek operation.BrokerException
-
getSubscriptionIds
public int[] getSubscriptionIds()Get the subscription IDs for an event. Returns null for a locally created event; a zero length array for an event delivered to this client; an array of subscription ids for an event that matched one or more subscriptions. -
setClientValidation
public void setClientValidation(boolean client_validation) This method will enable/disable client side validation. By default the client side validation is set to do Full validation. Client will not follow the validation type set on event type if client_validation is set to false. To get the client to follow the broker and do validation based on the validation type set on the event, client_validation needs to be set to true. -
getClientValidation
public boolean getClientValidation() -
getFieldType
Gets the type for the specified field. Sequence fields can use "[]" if it is the last part of the name on an event without a client, or always on events with a client.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setByteField
Sets the value of a byte field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setShortField
Sets the value of a short field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setIntegerField
Sets the value of an integer field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setLongField
Sets the value of a long field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setFloatField
Sets the value of a float field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setDoubleField
Sets the value of a double field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setBooleanField
Sets the value of a boolean field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setDateField
Sets the value of a date field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerException
-
setCharField
Sets the value of a char field. Characters which do not map to ANSI/ISO-Latin-1 will become underscores ('_').- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setUCCharField
Sets the value of a unicode char field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
setStringField
Sets the value of a string field. Characters which do not map to ANSI/ISO-Latin-1 will become underscores ('_'). Can also be used to set the value of a unicode string field if your event is typechecked or the named field already is set to a unicode value.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerException
-
setUCStringField
Sets the value of a unicode string field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerException
-
setStringFieldToSubstring
public void setStringFieldToSubstring(String field_name, int offset, int nc, String value) throws BrokerException Sets the value of a string field to a substring of another string. If nc is AUTO_SIZE (-1), take the rest of the string. Characters which do not map to ANSI/ISO-Latin-1 will become underscores ('_').- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If offset is not within the size of the string, or if nc would exceed the size of the string.BrokerException
-
setUCStringFieldToSubstring
public void setUCStringFieldToSubstring(String field_name, int offset, int nc, String value) throws BrokerException Sets the value of a unicode string field to a substring of another string. If nc is AUTO_SIZE (-1), take the rest of the string.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If offset is not within the size of the string, or if nc would exceed the size of the string.BrokerException
-
setByteSeqField
public void setByteSeqField(String field_name, int src_offset, int dest_offset, int n, byte[] value) throws BrokerException Sets the value of a subrange of a byte sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setShortSeqField
public void setShortSeqField(String field_name, int src_offset, int dest_offset, int n, short[] value) throws BrokerException Sets the value of a subrange of a short sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setIntegerSeqField
public void setIntegerSeqField(String field_name, int src_offset, int dest_offset, int n, int[] value) throws BrokerException Sets the value of a subrange of an integer sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setLongSeqField
public void setLongSeqField(String field_name, int src_offset, int dest_offset, int n, long[] value) throws BrokerException Sets the value of a subrange of a long sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setFloatSeqField
public void setFloatSeqField(String field_name, int src_offset, int dest_offset, int n, float[] value) throws BrokerException Sets the value of a subrange of a float sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setDoubleSeqField
public void setDoubleSeqField(String field_name, int src_offset, int dest_offset, int n, double[] value) throws BrokerException Sets the value of a subrange of a double sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setBooleanSeqField
public void setBooleanSeqField(String field_name, int src_offset, int dest_offset, int n, boolean[] value) throws BrokerException Sets the value of a subrange of a boolean sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setDateSeqField
public void setDateSeqField(String field_name, int src_offset, int dest_offset, int n, BrokerDate[] value) throws BrokerException Sets the value of a subrange of a date sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null, or if any of the elements of the value array are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setCharSeqField
public void setCharSeqField(String field_name, int src_offset, int dest_offset, int n, char[] value) throws BrokerException Sets the value of a subrange of a char sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set. Characters which do not map to ANSI/ISO-Latin-1 will become underscores ('_').- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setUCCharSeqField
public void setUCCharSeqField(String field_name, int src_offset, int dest_offset, int n, char[] value) throws BrokerException Sets the value of a subrange of a unicode char sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setStringSeqField
public void setStringSeqField(String field_name, int src_offset, int dest_offset, int n, String[] value) throws BrokerException Sets the value of a subrange of a string sequence field. Can also be used to set the value of a unicode string sequence field if your event is typechecked or the named field already is set to a unicode string sequence value. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set. Characters which do not map to ANSI/ISO-Latin-1 will become underscores ('_').- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null, or if any of the elements of the value array are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setUCStringSeqField
public void setUCStringSeqField(String field_name, int src_offset, int dest_offset, int n, String[] value) throws BrokerException Sets the value of a subrange of a unicode string sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null, or if any of the elements of the value array are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setSequenceField
public void setSequenceField(String field_name, short field_type, int src_offset, int dest_offset, int n, Object value) throws BrokerException Sets the value of a subrange of a sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set. The 'value' parameter should be the proper kind of array to match the 'field_type' parameter. For 'field_type' set to BrokerTypeDef.FIELD_TYPE_*: BYTE = byte[], SHORT = short[], INT = int[], LONG = long[], FLOAT = float[], DOUBLE = double[], BOOLEAN = boolean[], DATE = BrokerDate[], CHAR = char[], UNICODE_CHAR = char[], STRING = String[], UNICODE_STRING = String[], STRUCT = BrokerEvent[]. A sequence of sequences cannot be set with this operation. A value of STRING can also be used to set the value of a UNICODE_STRING sequence field if your event is typechecked or the named field already is set to a unicode string sequence value.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or if the value field is not of the type required for the field_type specified, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerInvalidTypeException
- If field_type is BrokerTypeDef.FIELD_TYPE_SEQUENCE or is not a supported field type.BrokerNullParameterException
- If field_name or value are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setSequenceFieldSize
Set the size of a sequence field.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not a sequence, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If size is less than zero.BrokerException
-
setStructFieldFromEvent
Sets the value of a structure field. The value event should contain the appropriate fields for the structure. The type of the value event and any envelope fields on the value event are ignored. If field_name is "" or null, the top level of the event is modified.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not a structure, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If value is null.BrokerException
-
setStructSeqFieldFromEvents
public void setStructSeqFieldFromEvents(String field_name, int src_offset, int dest_offset, int n, BrokerEvent[] value) throws BrokerException Sets the value of a structure sequence field. The value events should contain the appropriate fields for the structures being set. The type of the value events and any envelope fields on the value events are ignored. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name or value are null, or if any of the elements in the value array are null.BrokerOutOfRangeException
- If src_offset is not within the size of the the passed in value, if dest_offset is less than zero, or if n is less than -1.BrokerException
-
setField
Sets the value of a field. The 'value' parameter should be the proper kind of object to match the 'field_type' parameter. For 'field_type' set to BrokerTypeDef.FIELD_TYPE_*: BYTE = Byte, SHORT = Short, INT = Integer, LONG = Long, FLOAT = Float, DOUBLE = Double, BOOLEAN = Boolean, DATE = BrokerDate, CHAR = Character, UNICODE_CHAR = Character, STRING = String, UNICODE_STRING = String, STRUCT = BrokerEvent. A sequence cannot be set with this operation. Use setSequenceField() for sequences. A value of STRING can also be used to set the value of a UNICODE_STRING field if your event is typechecked or the named field already is set to a unicode string value.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the value object type does not match the field_type specified, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerInvalidTypeException
- If field_type is BrokerTypeDef.FIELD_TYPE_SEQUENCE or is not a supported field type.BrokerNullParameterException
- If field_name or value are null.BrokerException
-
setField
Sets the value of a field. Does not accept sequences. The 'value' field in the BrokerField should be the proper kind of object to match the 'field_type' field. For 'field_type' set to BrokerTypeDef.FIELD_TYPE_*: BYTE = Byte, SHORT = Short, INT = Integer, LONG = Long, FLOAT = Float, DOUBLE = Double, BOOLEAN = Boolean, DATE = BrokerDate, CHAR = Character, UNICODE_CHAR = Character, STRING= String, UNICODE_STRING = String, STRUCT = BrokerEvent. A sequence cannot be set with this operation. Use setSequenceField() for sequences.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the value object type does not match the field_type specified, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerInvalidTypeException
- If the field_type field is BrokerTypeDef.FIELD_TYPE_SEQUENCE or is not a supported field type.BrokerNullParameterException
- If field_name, field, or the value field in 'field' are null.BrokerException
-
getByteField
Get the value of a byte field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getShortField
Get the value of a short field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getIntegerField
Get the value of an integer field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getLongField
Get the value of a long field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getFloatField
Get the value of a float field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getDoubleField
Get the value of a double field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getBooleanField
Get the value of a boolean field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getDateField
Get the value of a date field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getCharField
Get the value of a char field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getUCCharField
Get the value of a unicode char field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getStringField
Get the value of a string field. Can also be used to get the value of a unicode string field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getUCStringField
Get the value of a unicode string field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getByteSeqField
Get the value of a byte sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getShortSeqField
Get the value of a short sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getShortSeqFieldInternal
public short[] getShortSeqFieldInternal(String field_name, int offset, int max_n) throws BrokerException - Throws:
BrokerException
-
getIntegerSeqField
Get the value of an integer sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getLongSeqField
Get the value of a long sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getFloatSeqField
Get the value of a float sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getDoubleSeqField
Get the value of a double sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getBooleanSeqField
public boolean[] getBooleanSeqField(String field_name, int offset, int max_n) throws BrokerException Get the value of a boolean sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getDateSeqField
public BrokerDate[] getDateSeqField(String field_name, int offset, int max_n) throws BrokerException Get the value of a date sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getCharSeqField
Get the value of a char sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getUCCharSeqField
Get the value of a unicode char sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getStringSeqField
Get the value of a string sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values. Can also be used to get the value of a unicode string sequence field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getUCStringSeqField
public String[] getUCStringSeqField(String field_name, int offset, int max_n) throws BrokerException Get the value of a unicode string sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getSequenceFieldSize
Get the size of a sequence field.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
getSequenceField
public BrokerField getSequenceField(String field_name, int offset, int max_n) throws BrokerException Get the value of a sequence field. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values. The 'value' field in the BrokerField will be set to match the 'field_type' field. For 'field_type' set to BrokerTypeDef.FIELD_TYPE_*: BYTE = byte[], SHORT = short[], INT = int[], LONG = long[], FLOAT = float[], DOUBLE = double[], BOOLEAN = boolean[], DATE = BrokerDate[], CHAR = char[], UNICODE_CHAR = char[], UNICODE_STRING = String[], STRING= String[], STRUCT = BrokerEvent[]. Cannot get a sequence of sequences with this operation.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerInvalidTypeException
- If the field is a sequence of sequences.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getStructFieldAsEvent
Get the value of a structure field. The event will contain the appropriate fields and its type name will be "struct_value". If field_name is "" or null, the top level of the event is returned.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerException
-
getStructSeqFieldAsEvents
public BrokerEvent[] getStructSeqFieldAsEvents(String field_name, int offset, int max_n) throws BrokerException Get the value of a structure sequence field. The events will not be typechecked and they will contain the appropriate fields from the structs. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerException
-
getField
Get the value of field. The 'value' field in the BrokerField will be set to match the 'field_type' field. For 'field_type' set to BrokerTypeDef.FIELD_TYPE_*: BYTE = Byte, SHORT = Short, INT = Integer, LONG = Long, FLOAT = Float, DOUBLE = Double, BOOLEAN = Boolean, DATE = BrokerDate, CHAR = Character, UNICODE_CHAR = Character, STRING= String, UNICODE_STRING = String, STRUCT = BrokerEvent. Cannot get a sequence with this operation.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerInvalidTypeException
- If the field is a sequence.BrokerNullParameterException
- If field_name is null.BrokerException
-
getFieldNames
Get the list of field names in an event. If field_name is null or "", it gets the fields at the top level of the event. Otherwise, the field_name should refer to a structure sub-field and it will return the names at that level. Non-structured types will return zero names.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerException
-
isFieldSet
Determine if the specified field is set in the event. For non-typechecked events, this is merely whether the field exists or not. For typechecked events, this tells if the field has been assigned a value or is simply defaulting to a value because it was not set.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
isFieldSetInternal
- Throws:
BrokerException
-
clear
public void clear()Clears all fields of the event so it can be re-used. -
clearField
Clear (un-set) a field in the event.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
clearField
Clear (un-set) a field in the event. Will not throw an exception if field is not found. If fieldExists is true- Parameters:
field_name
- is the field that needs to be cleared from event.ignoreEx
- set to true, no exception is thrown if field is not found ignoreEx is set to false, exception is thrown if field is not found.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event and ignoreEx is set to false.BrokerFieldTypeMismatchException
- If the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerException
-
clearFieldInternal
- Throws:
BrokerException
-
validate
Validate event in the context of the specified client. This can be used on non-typechecked events to typecheck them, or on typechecked events to check if they would be valid for a client other than the one they were created with. An event passes validation if its event type exists on the broker and if it only contains fields which are properly named and typed for that event type.- Throws:
BrokerFieldTypeMismatchException
- If the event does not pass validation.BrokerInvalidClientException
- If the client parameter is null and the event is not typechecked.BrokerException
-
getTag
Get the event's 'tag' envelope field. This is equivalent to getIntegerField("_env.tag"), but it can be more convenient.- Throws:
BrokerFieldNotFoundException
- If "_env.tag" is not set on the event.BrokerException
-
setTag
Set the event's 'tag' envelope field. This is the same as setIntegerField("_env.tag",tag), but it can be more convenient.- Throws:
BrokerException
-
isLastReply
public boolean isLastReply()Determines if the given event is the last event in a reply sequence. Returns true if the event has appSeqn==appLastSeqn, if the event is an Adapter::error event, or if either of appSeqn or appLastSeqn is not set. Returns false if of the above is not true. -
isErrorReply
public boolean isErrorReply()Determine if the given event is an error reply. Returns true if the event is of type Adapter::error. Returns false if of the above is not true. -
isAckReply
public boolean isAckReply()Determine if the given event is an acknowledgement reply. Returns true if the event is of type Adapter::ack. Returns false if of the above is not true. -
isNullReply
public boolean isNullReply()Determine if the given event is a 'null' event. This means that although The event is a data reply event, it contains no actual data and is just a placeholder to indicate that there will be no data replies. Returns true if the event has appSeqn==-1 and appLastSeqn==-1. Returns false if of the above is not true. -
hasBeenModified
public boolean hasBeenModified()Check if event has been modified since last time the modification flag was cleared. -
clearModificationFlag
public void clearModificationFlag()Clear the modification flag. -
setModificationFlag
public void setModificationFlag()Set the modification flag. -
toString
Get event content as a string which includes newlines formatted for the US English locale. -
toString
Get event content as a string which includes newlines formatted for the specified locale. -
toString
Get event content as a string suitable for human viewing formatted for the US English locale. The "indent_level" is the number of 4-space indents that the output should be generated for. -
toString
Get event content as a string suitable for human viewing formatted for the specified locale. The "indent_level" is the number of 4-space indents that the output should be generated for. -
toLocalizedString
Get event content as a string which includes newlines formatted for the default locale. Equivalent totoString(java.util.Locale.getDefault())
-
toFormattedString
Format an event string. Take the format_string and replace all references to event fields with their values. Equivalent totoFormattedString(formatString, java.util.Locale.US)
. See class BrokerFormat for details.- Throws:
BrokerException
-
toFormattedString
Format an event string. Take the format_string and replace all references to event fields with their values formatted for the specified locale. See class BrokerFormat for details.- Throws:
BrokerException
-
toLocalizedFormattedString
Format an event string. Take the format_string and replace all references to event fields with their values. Event field values will be formatted for the default locale. Equivalent totoFormattedString(formatString, java.util.Locale.getDefault())
See class BrokerFormat for details.- Throws:
BrokerException
-
stringToANSI
Convert a String object to another String which only contains characters which cleanly map to ANSI 8-bit characters. All unicode characters that do not map are replaced with '\\u' escapes. -
stringFromANSI
Convert a String object which contains only ANSI 8-bit characters, to another String which contains unicode characters. Converts uses of '\\u' escapes to proper characters. -
toBinData
public byte[] toBinData()Get out the event's data as a byte array. This is useful for storage on disk or in a database. -
fromBinData
public static BrokerEvent fromBinData(BrokerClient client, byte[] data, String event_type_name) throws BrokerException Create an event using a byte array given out by toBinData().- Throws:
BrokerCorruptDataException
- If data is not a valid event.BrokerNoPermissionException
- If a client is specified and the client does not have permission to publish or subscribe to the event type.BrokerNullParameterException
- If data is null.BrokerUnknownEventTypeException
- If a client is specified and the broker does not have an event type with the specified name.BrokerException
-
fromBinData
- Throws:
BrokerException
-
getNativeEvent
protected COM.activesw.api.client.NativeEvent getNativeEvent() -
getBodyIterator
protected COM.activesw.api.client.NativeFieldIterator getBodyIterator() -
getEnvelopeIterator
protected COM.activesw.api.client.NativeFieldIterator getEnvelopeIterator() -
getBody
protected COM.activesw.api.client.NativeStruct getBody() -
getEnvelope
protected COM.activesw.api.client.NativeStruct getEnvelope() -
getWireEvent
protected byte[] getWireEvent() -
setWireEvent
public void setWireEvent(byte[] w_event) -
toWireEvent
- Throws:
BrokerException
-
checkSetEnvField
protected static void checkSetEnvField(String field_name, String full_field_name) throws BrokerException - Throws:
BrokerException
-
getEventField
Get the value of an event field. If field_name is "" or null, the top level of this event is returned.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerException
-
setEventField
Sets the value of an event field. The event specified by value should contain an event of the appropriate type. This method is unsupported for event that are not typechecked. Events that are not typechecked should use setStructFieldFromEvent instead. Envelope fields in the event specified by value will be ignored.- Throws:
BrokerFieldNotFoundException
- If the event is associated with a client and the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not a structure, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If value is null.BrokerNotImplementedException
- If this event is not typechecked.BrokerException
-
getEventSeqField
public BrokerEvent[] getEventSeqField(String field_name, int offset, int max_n) throws BrokerException Get the value of an event sequence field. The events will be typechecked. Gets the entire length if max_n is ENTIRE_SEQUENCE (-1), otherwise gets up to max_n values. This method is unsupported for event that are not typechecked. Events that are not typechecked should use getStructSeqFieldAsEvents instead.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerNotImplementedException
- If this event is not typechecked.BrokerException
-
setEventSeqField
public void setEventSeqField(String field_name, int src_offset, int dest_offset, int n, BrokerEvent[] value) throws BrokerException Set the value of an event sequence field. The 'n' parameter can be set to AUTO_SIZE (-1) to use the actual array size. The 'dest_offset' parameter can be set to ENTIRE_SEQUENCE (-1) to set the sequence size to the number of elements being set. This method is unsupported for event that are not typechecked. Events that are not typechecked should use getStructSeqFieldAsEvents instead. Envelope fields in the event specified by value will be ignored.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the field is not of the specified type, or the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerNullParameterException
- If field_name is null.BrokerOutOfRangeException
- If offset is less than zero or greater than the sequence size, or max_n is less than zero.BrokerNotImplementedException
- If this event is not typechecked.BrokerException
-
setStringProperty
- Throws:
BrokerException
-
setLongProperty
- Throws:
BrokerException
-
setShortProperty
- Throws:
BrokerException
-
setFloatProperty
- Throws:
BrokerException
-
setIntProperty
- Throws:
BrokerException
-
setDoubleProperty
- Throws:
BrokerException
-
setBooleanProperty
- Throws:
BrokerException
-
setByteProperty
- Throws:
BrokerException
-
setNullProperty
- Throws:
BrokerException
-
getStringProperty
- Throws:
BrokerException
-
getIntProperty
- Throws:
BrokerException
-
getDoubleProperty
- Throws:
BrokerException
-
getShortProperty
- Throws:
BrokerException
-
getByteProperty
- Throws:
BrokerException
-
getFloatProperty
- Throws:
BrokerException
-
getBooleanProperty
- Throws:
BrokerException
-
getLongProperty
- Throws:
BrokerException
-
getProperty
- Throws:
BrokerException
-
getPropertyNames
Get the list of property names in an event. Returns a list of names that are not defined in the broker.- Throws:
BrokerFieldNotFoundException
- If the field name does not exist in the event.BrokerFieldTypeMismatchException
- If the name incorrectly accesses a type (such as using [2] on a non-sequence field).BrokerInvalidFieldNameException
- If the field name is not valid.BrokerException
-
getPriority
public int getPriority()Gets the priority of the event. The values are in the HIGH_PRIORITY (value of 9) - LOW_PRIORITY (value of 0) range. The deafult value is DEFAULT_PRIORITY (4) -
setPriority
Sets the priority of the event. The legal values are in the HIGH_PRIORITY (value of 9) - LOW_PRIORITY (value of 0) range.- Throws:
BrokerOutOfRangeException
- - the specified priority is not in the legal range
-