-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from RabbitMQ to isc.rabbitmq package
- Loading branch information
Showing
11 changed files
with
136 additions
and
183 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Class isc.rabbitmq.Operation Extends Ens.BusinessOperation | ||
{ | ||
|
||
Parameter ADAPTER = "isc.rabbitmq.OutboundAdapter"; | ||
|
||
Property Adapter As isc.rabbitmq.OutboundAdapter; | ||
|
||
Method OnMessage(request As Ens.StringContainer, response As Ens.Response) As %Status | ||
{ | ||
#Dim sc As %Status = $$$OK | ||
Set response = ##class(Ens.Response).%New() | ||
Set sc = ..Adapter.SendMessage(request.StringValue) | ||
Quit sc | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Class isc.rabbitmq.Service Extends Ens.BusinessService | ||
{ | ||
|
||
Parameter ADAPTER = "isc.rabbitmq.InboundAdapter"; | ||
|
||
Property Adapter As isc.rabbitmq.InboundAdapter; | ||
|
||
Method OnProcessInput(message As isc.rabbitmq.Message) As %Status | ||
{ | ||
quit message.%Save() | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.