Skip to content

Commit

Permalink
Update get message variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
dilanSachi committed Oct 31, 2023
1 parent 2f9d5c0 commit 0d6043f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ballerina/destination.bal
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import ballerina/jballerina.java;
public type Destination distinct client object {
remote function put(Message message) returns Error?;

remote function get(*GetMessageOptions options) returns Message|Error?;
remote function get(*GetMessageOptions getMessageOptions) returns Message|Error?;

remote function close() returns Error?;
};
Expand All @@ -32,7 +32,7 @@ public isolated client class Queue {
'class: "io.ballerina.lib.ibm.ibmmq.Queue"
} external;

remote function get(*GetMessageOptions options) returns Message|Error? =
remote function get(*GetMessageOptions getMessageOptions) returns Message|Error? =
@java:Method {
'class: "io.ballerina.lib.ibm.ibmmq.Queue"
} external;
Expand All @@ -51,7 +51,7 @@ public isolated client class Topic {
'class: "io.ballerina.lib.ibm.ibmmq.Topic"
} external;

remote function get(*GetMessageOptions options) returns Message|Error? =
remote function get(*GetMessageOptions getMessageOptions) returns Message|Error? =
@java:Method {
'class: "io.ballerina.lib.ibm.ibmmq.Topic"
} external;
Expand Down
2 changes: 1 addition & 1 deletion ballerina/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public type QueueManagerConfiguration record {|
|};

public type GetMessageOptions record {|
int gmOptions = MQGMO_NO_WAIT;
int options = MQGMO_NO_WAIT;
int waitInterval = 10;
|};

Expand Down

0 comments on commit 0d6043f

Please sign in to comment.