You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bindings/java/gateway-java-binding/src/main/java/com/microsoft/azure/gateway/core/GatewayModule.java
+15-4
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,9 @@ public abstract class GatewayModule implements IGatewayModule{
16
16
publicabstractvoidreceive(Messagemessage);
17
17
publicabstractvoiddestroy();
18
18
19
+
/** The address of the native module pointer */
20
+
privatelong_addr;
21
+
19
22
/** The {@link MessageBus} to which this module belongs */
20
23
privateMessageBusbus;
21
24
@@ -26,20 +29,24 @@ public abstract class GatewayModule implements IGatewayModule{
26
29
* Constructs a {@link GatewayModule} from the provided address and {@link MessageBus}. A {@link GatewayModule} should always call this super
27
30
* constructor before any module-specific constructor code.
28
31
*
32
+
* The {@code address} parameter must be passed to the super constructor but can be ignored by the module-implementor when writing a module implementation.
33
+
*
34
+
* @param address The address of the native module pointer.
29
35
* @param bus The {@link MessageBus} to which this module belongs
30
36
* @param configuration The module-specific configuration
Copy file name to clipboardExpand all lines: bindings/java/gateway-java-binding/src/test/java/tests/unit/com/microsoft/azure/gateway/core/GatewayModuleTest.java
Copy file name to clipboardExpand all lines: bindings/java/gateway-java-binding/src/test/java/tests/unit/com/microsoft/azure/gateway/messaging/MessageTest.java
/*Codes_SRS_JAVA_MODULE_HOST_14_027: [This function shall publish the message to the MESSAGE_BUS_HANDLE addressed by addr and return the value of this function call.]*/
0 commit comments