.jetserverUdpHostName("255.255.255.255").udpPort(18090);
LoginHelper loginHelper = builder.build();
SessionFactory sessionFactory = new SessionFactory(loginHelper);
ScheduledExecutorService taskExecutor = Executors.newSingleThreadScheduledExecutor();
for(int i = 1; i<=50; i++){
Session session = sessionFactory.createAndConnectSession(getDefaultHandler());
// Set the reconnect policy for reconnection.
session.setReconnectPolicy(new ReconnectPolicy.ReconnectNTimes(2, 2000, loginHelper));
GamePlay task = null;
if((i % 2) == 0){
task = new GamePlay(IAM.DEFENDER, session);
}
else{