diff --git a/examples/src/main/java/dev/pixelib/meteor/sender/SendingUpdateMethod.java b/examples/src/main/java/dev/pixelib/meteor/sender/SendingUpdateMethod.java index fb09b06..b293e1f 100644 --- a/examples/src/main/java/dev/pixelib/meteor/sender/SendingUpdateMethod.java +++ b/examples/src/main/java/dev/pixelib/meteor/sender/SendingUpdateMethod.java @@ -10,6 +10,7 @@ public static void main(String[] args) throws Exception{ MathAdd mathAdd = meteor.registerProcedure(MathAdd.class); MathSubstract mathSubstract = meteor.registerProcedure(MathSubstract.class); + MathMultiply mathMultiply = meteor.registerProcedure(MathMultiply.class); // register an implementation, invocations will be dispatched to this object. // implementations will be registered under all interfaces they implement @@ -21,6 +22,9 @@ public static void main(String[] args) throws Exception{ int addResult = mathAdd.add(1, 2, 3, 4, 5); System.out.println("1 + 2 + 3 + 4 + 5 = " + addResult); + int multiResult = mathMultiply.multiply(5, 5); + System.out.println("5 * 5 = " + multiResult); + meteor.stop(); } diff --git a/examples/src/main/java/dev/pixelib/meteor/sender/SendingUpdateMethodRedis.java b/examples/src/main/java/dev/pixelib/meteor/sender/SendingUpdateMethodRedis.java index ae4a450..17e7902 100644 --- a/examples/src/main/java/dev/pixelib/meteor/sender/SendingUpdateMethodRedis.java +++ b/examples/src/main/java/dev/pixelib/meteor/sender/SendingUpdateMethodRedis.java @@ -10,6 +10,7 @@ public static void main(String[] args) throws Exception{ MathAdd mathAdd = meteor.registerProcedure(MathAdd.class); MathSubstract mathSubstract = meteor.registerProcedure(MathSubstract.class); + MathMultiply mathMultiply = meteor.registerProcedure(MathMultiply.class); // register an implementation, invocations will be dispatched to this object. // implementations will be registered under all interfaces they implement @@ -22,6 +23,9 @@ public static void main(String[] args) throws Exception{ int addResult = mathAdd.add(1, 2, 3, 4, 5); System.out.println("1 + 2 + 3 + 4 + 5 = " + addResult); + int multiResult = mathMultiply.multiply(5, 5); + System.out.println("5 * 5 = " + multiResult); + meteor.stop(); }