@Override public void wire(ManagedObjectSourceWirerContext context) { // Provide thread per each accepter and listener context.mapTeam("accepter", WorkerPerTaskTeamSource.class.getName()); context.mapTeam("listener", WorkerPerTaskTeamSource.class.getName()); // Clean up (without thread context switch) context.mapTeam("cleanup", PassiveTeamSource.class.getName()); // Map request handler context.mapFlow("HANDLE_HTTP_REQUEST", sectionName, sectionInputName); } };
@Override public void wire(ManagedObjectSourceWirerContext context) { // Provide thread per each accepter and listener context.mapTeam("accepter", WorkerPerTaskTeamSource.class.getName()); context.mapTeam("listener", WorkerPerTaskTeamSource.class.getName()); // Clean up (without thread context switch) context.mapTeam("cleanup", PassiveTeamSource.class.getName()); // Service SSL tasks within own thread context.mapTeam("SSL_TASKS", OnePersonTeamSource.class.getName()); // Map request handler context.mapFlow("HANDLE_HTTP_REQUEST", sectionName, sectionInputName); } };
@Override public void wire(ManagedObjectSourceWirerContext context) { context.setManagedObjectScope(ManagedObjectScope.PROCESS); context.mapTeam( CometServiceManagedObjectSource.EXPIRE_TEAM_NAME, OnePersonTeamSource.class.getName()); } }, new AutoWire(CometService.class)).setTimeout(600 * 1000);
@Override public void wire(ManagedObjectSourceWirerContext context) { // Process scoped context.setManagedObjectScope(ManagedObjectScope.PROCESS); // Map flow to service context.mapFlow(FlowKeys.SERVICE.name(), handlerSectionName, handlerInputName); // Configure team for recycle task if (isUseAsync) { context.mapTeam("COMPLETE", PassiveTeamSource.class.getName()); } } }, new AutoWire(ServletBridge.class));