Skip to content

Commit

Permalink
Merge pull request #31 from ayeshLK/master
Browse files Browse the repository at this point in the history
Mark methods in the IBM MQ Queue and IBM MQ topic as isolated
  • Loading branch information
ayeshLK authored Nov 25, 2023
2 parents c837351 + 33f9b11 commit 8e82288
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ballerina/destination.bal
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public isolated client class Queue {
#
# + message - IBM MQ message
# + return - An `ibmmq:Error` if the operation fails or else `()`
remote function put(Message message) returns Error? =
isolated remote function put(Message message) returns Error? =
@java:Method {
'class: "io.ballerina.lib.ibm.ibmmq.Queue"
} external;
Expand All @@ -43,15 +43,15 @@ public isolated client class Queue {
# + getMessageOptions - Options to control message retrieval
# + return - An `ibmmq:Message` if there is a message in the queue, `()` if there
# is no message or else `ibmmq:Error` if the operation fails
remote function get(*GetMessageOptions getMessageOptions) returns Message|Error? =
isolated remote function get(*GetMessageOptions getMessageOptions) returns Message|Error? =
@java:Method {
'class: "io.ballerina.lib.ibm.ibmmq.Queue"
} external;

# Closes the IBM MQ queue object. No further operations on this object are permitted after it is closed.
#
# + return - An `ibmmq:Error` if the operation fails or else `()`
remote function close() returns Error? =
isolated remote function close() returns Error? =
@java:Method {
'class: "io.ballerina.lib.ibm.ibmmq.Queue"
} external;
Expand All @@ -65,7 +65,7 @@ public isolated client class Topic {
#
# + message - IBM MQ message
# + return - An `ibmmq:Error` if the operation fails or else `()`
remote function put(Message message) returns Error? =
isolated remote function put(Message message) returns Error? =
@java:Method {
'class: "io.ballerina.lib.ibm.ibmmq.Topic"
} external;
Expand All @@ -75,15 +75,15 @@ public isolated client class Topic {
# + getMessageOptions - Options to control message retrieval
# + return - An `ibmmq:Message` if there is a message in the topic, `()` if there
# is no message or else `ibmmq:Error` if the operation fails
remote function get(*GetMessageOptions getMessageOptions) returns Message|Error? =
isolated remote function get(*GetMessageOptions getMessageOptions) returns Message|Error? =
@java:Method {
'class: "io.ballerina.lib.ibm.ibmmq.Topic"
} external;

# Closes the IBM MQ topic object. No further operations on this object are permitted after it is closed.
#
# + return - An `ibmmq:Error` if the operation fails or else `()`
remote function close() returns Error? =
isolated remote function close() returns Error? =
@java:Method {
'class: "io.ballerina.lib.ibm.ibmmq.Topic"
} external;
Expand Down

0 comments on commit 8e82288

Please sign in to comment.