1 package examples.experimental.example3.classes; 2 3 import java.io.IOException; 4 5 6 public class MyCaller { 7 private final PingService pingService; 8 9 public MyCaller() { 10 this.pingService = new PingService(); 11 } 12 13 public void ping(int pingId) throws IOException { 14 pingService.sendPing(pingId); 15 } 16 17 }