Ignore:
Timestamp:
06/25/13 16:38:31 (11 years ago)
Author:
stoda
Message:

@MultiMethod? + @SyncMethod? implemented and tested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test/java/omq/test/multiProcess/NumberImpl.java

    r54 r58  
    11package omq.test.multiProcess;
    22
    3 import omq.client.annotation.AsyncMethod;
    4 import omq.client.annotation.MultiMethod;
    5 import omq.client.annotation.SyncMethod;
    63import omq.server.RemoteObject;
    74
     
    2017        }
    2118
    22         @Override
    23         @SyncMethod
    2419        public void setNumber(int x) {
    2520                this.x = x;
    2621        }
    2722
    28         @Override
    29         @SyncMethod(timeout = 1000)
    30         public int getNumer() {
     23        public int getNumber() {
    3124                return x;
    3225        }
    3326
    34         @Override
    35         @MultiMethod
    36         @AsyncMethod
    3727        public void setMultiNumber(int x) {
    3828                this.x = x;
    3929        }
    4030
     31        public int getMultiNumber() {
     32                return x;
     33        }
     34
    4135}
Note: See TracChangeset for help on using the changeset viewer.