Skip to content

Commit

Permalink
Update IBM MQ documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Aug 27, 2024
1 parent 61f95bc commit f3aeedc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/spec/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,27 @@ public type Message record {|

## 4. Client Options

- GetMessageOptions record represents client options which can be used when retrieving messages from an IBM MQ destination.
- `GetMessageOptions` record represents client options which can be used when retrieving messages from an IBM MQ destination.

```ballerina
public type GetMessageOptions record {|
# Get message option
int options = MQGMO_NO_WAIT;
# The maximum time (in seconds) that a `get` call waits for a suitable message to arrive. It is used in conjunction with `ibmmq.MQGMO_WAIT`.
int waitInterval = 10;
# Message selection criteria
MatchOptions matchOptions?;
|};
```

- `MatchOptions` record represents the selection criteria that determine which message is retrieved.

```ballerina
public type MatchOptions record {|
# The message identifier of the message which needs to be retrieved
byte[] messageId?;
# The Correlation identifier of the message which needs to be retrieved
byte[] correlationId?;
|};
```

Expand Down

0 comments on commit f3aeedc

Please sign in to comment.