Code example for ConcurrentSkipListSet

0
public class Console 
{ 
    private static final Logger log = LoggerFactory.getLogger(Console.class); 
 
    private final ConcurrentMap<UUID, AgentDescription> agents    = Maps.newConcurrentMap();
    private final Set<URI>                              agentUris = new ConcurrentSkipListSet<URI>();
 
    private ScheduledExecutorService cron;
 
    public Console() 
    { 
        this.cron = MoreExecutors.getExitingScheduledExecutorService(new ScheduledThreadPoolExecutor(1));
    } 
 
    public List<AgentDescription> getAgents()
    { 
        return ImmutableList.copyOf(agents.values());
    } 
 
    public void register(URI agent)
Contextual code suggestions in your IDE  Get Codota for Java