@brohitbrose
Please find server code.. I hope this helps..
Plane:
@SwimRoute("/customer")
private AgentRoute<Customer> customer;
Lane:
@SwimLane("details")
MapLane<String, Customer> view = this.<String, Customer>mapLane().didUpdate((key, newValue, oldValue) -> {
System.out.println("the new value is " + newValue.toString());
});
customerDetails
and contactInfoDetails
(this might take a little more processing, maybe something like contactInfoDetails.getItem(0).tail()
for the first value since it's an Array)as defined above
@meepeek Good questions.
Please do let us know if you have any other questions. Also one question for you, how did you hear about the Swim platform?
@mesh {
@part {
key: partA
predicate: @hash(0x00000000, 0x7fffffff)
@host {
#uri: "warp://localhost:9008"
primary: true
}
@host {
uri: "warp://localhost:9009"
primary: false
}
}
@part {
key: partB
predicate: @hash(0x80000000, 0xffffffff)
@host {
#uri: "warp://localhost:9008"
primary: false
}
@host {
uri: "warp://localhost:9009"
primary: true
}
}
}
@mesh {
@part {
key: partA
predicate: @hash(0x00000000, 0x7fffffff)
@host {
uri: "warp://localhost:9008"
primary: true
}
@host {
#uri: "warp://localhost:9009"
primary: false
}
}
@part {
key: partB
predicate: @hash(0x80000000, 0xffffffff)
@host {
uri: "warp://localhost:9008"
primary: false
}
@host {
#uri: "warp://localhost:9009"
primary: true
}
}
}