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 84aad43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class CommonUtils {
private static final BString PROPERTY_VALUE = StringUtils.fromString("value");
private static final BString PROPERTY_DESCRIPTOR = StringUtils.fromString("descriptor");
private static final BString WAIT_INTERVAL = StringUtils.fromString("waitInterval");
private static final BString OPTIONS = StringUtils.fromString("gmOptions");
private static final BString OPTIONS = StringUtils.fromString("options");

private static final MQPropertyDescriptor defaultPropertyDescriptor = new MQPropertyDescriptor();

Expand Down

0 comments on commit 84aad43

Please sign in to comment.