MCPcopy Create free account
hub / github.com/InterviewReady/Low-Level-Design / Service

Class Service

LoadBalancer.java:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62class Service {
63 String name;
64 Set<Destination> destinations;
65
66 public void addDestination(Destination destination){
67 destinations.add(destination);
68 }
69
70 public void removeDestination(Destination destination){
71 destinations.remove(destination);
72 }
73}
74
75class Request {
76 String id;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected