Sorry Peter for replying this late.
I did not notice your reply.
I understood what you are saying.
What I wanted to say is:
-----------
public class SimpleVerticle extends Verticle {
private GlobalObj glbl;
@Override
public void start() {
new A().method(glbl);
new B().method(glbl);
}
}
class A {
void method(GlobalObj glbl) {
// update glbl
}
}
class B {
void method(GlobalObj glbl) {
// update glbl
}
}
-----------
Say With this, I use "-instances 2".
Global object 'glbl' is confined to verticle.
'glbl's of verticle X and verticle Y are completely independent of each other
and there is no mutual meddling of the data.
Does this sound correct?
Thanks
-uppsax