ConcurrentHashMap values - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ConcurrentHashMap values method.

This code example shows how to use the following methods:values
        return clearedAny;
    } 
 
    @Override 
    public List<Cookie> getCookies() {
        return new ArrayList<Cookie>(cookies.values());
    } 
 
    /** 
     * Will make PersistentCookieStore instance ignore Cookies, which are non-persistent by 
     * signature (`Cookie.isPersistent`) 
     * 
     * @param omitNonPersistentCookies true if non-persistent cookies should be omited 
     */ 
    public void setOmitNonPersistentCookies(boolean omitNonPersistentCookies) {
        this.omitNonPersistentCookies = omitNonPersistentCookies;
    } 
 
    /** 
     * Non-standard helper method, to delete cookie 
6
CodeRank
This code example shows how to use the following methods:values
     * All registered instances of {@link HystrixThreadPoolMetrics} 
     *  
     * @return {@code Collection<HystrixThreadPoolMetrics>} 
     */ 
    public static Collection<HystrixThreadPoolMetrics> getInstances() {
        return Collections.unmodifiableCollection(metrics.values());
    } 
 
    private final HystrixThreadPoolKey threadPoolKey;
    private final HystrixRollingNumber counter;
    private final ThreadPoolExecutor threadPool;
    private final HystrixThreadPoolProperties properties;
 
    private HystrixThreadPoolMetrics(HystrixThreadPoolKey threadPoolKey, ThreadPoolExecutor threadPool, HystrixThreadPoolProperties properties) {
        this.threadPoolKey = threadPoolKey;
        this.threadPool = threadPool;
        this.properties = properties;
        this.counter = new HystrixRollingNumber(properties.metricsRollingStatisticalWindowInMilliseconds(), properties.metricsRollingStatisticalWindowBuckets());
    } 
 
5
CodeRank
This code example shows how to use the following methods:values
	 * Returns all protocols currently registered. The returned collection is unmodifiable. 
	 * 
	 * @return All registered protocols 
	 */ 
	public static Collection<Protocol> getProtocols() {
		return Collections.unmodifiableCollection(PROTOCOL_MAP.values());
	} 
} 
5
CodeRank
This code example shows how to use the following methods:values
  /** 
   *  
   * @return the list of metrics 
   */ 
  public Collection<MetricsBase> getMetricsList() { 
    return metricsList.values(); 
  } 
} 
5
CodeRank
This code example shows how to use the following methods:values
 
    /** 
     * Provides a snapshot view of all {@code V}s. 
     */ 
    public Iterable<V> values() {
        return store.values();
    } 
} 
5
CodeRank
This code example shows how to use the following methods:values
 
    /** 
     * Provides a snapshot view of all {@code V}s. 
     */ 
    public Iterable<V> values() {
        return store.values();
    } 
} 
5
CodeRank
This code example shows how to use the following methods:values
   * This procedure enumerates all entries in the port mapper's database. The 
   * procedure takes no parameters and returns a list of program, version, 
   * protocol, and port values. 
   */ 
  private XDR dump(int xid, XDR in, XDR out) {
    PortmapMapping[] pmapList = map.values().toArray(new PortmapMapping[0]);
    return PortmapResponse.pmapList(out, xid, pmapList);
  } 
 
  @Override 
  public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
      throws Exception {
 
    RpcInfo info = (RpcInfo) e.getMessage();
    RpcCall rpcCall = (RpcCall) info.header();
    final int portmapProc = rpcCall.getProcedure();
    int xid = rpcCall.getXid();
    XDR in = new XDR(info.data().toByteBuffer().asReadOnlyBuffer(),
        XDR.State.READING); 
    XDR out = new XDR();
5
CodeRank
This code example shows how to use the following methods:values
     * Get all process handles old function name:all-processes 
     *  
     * @return 
     */ 
    protected static Collection<WorkerShutdown> GetAllProcessHandles() {
        return processMap.values();
    } 
 
    /** 
     * Kill pid handle old function name: KillProcess 
     *  
     * @param pid 
     */ 
    public static void killProcess(String pid) {
        synchronized (lock) { 
            LOG.info("Killing process " + pid); 
 
            WorkerShutdown shutdownHandle = getProcessHandle(pid); 
 
            processMap.remove(pid); 
5
CodeRank
This code example shows how to use the following methods:values
        return clearedAny;
    } 
 
    @Override 
    public List<Cookie> getCookies() {
        return new ArrayList<Cookie>(cookies.values());
    } 
 
 
    // 
    // Cookie serialization/deserialization 
    // 
 
    protected String encodeCookie(SerializableCookie cookie) {
        ByteArrayOutputStream os = new ByteArrayOutputStream();
        try { 
            ObjectOutputStream outputStream = new ObjectOutputStream(os);
            outputStream.writeObject(cookie);
        } catch (Exception e) {
            return null; 
5
CodeRank
This code example shows how to use the following methods:values
	public OsMoGroup getMainGroup() { 
		return mainGroup;
	} 
	 
	public Collection<OsMoGroup> getGroups() {
		return groups.values();
	} 
	 
	public void loadOnlyMainGroup() { 
		String grp = pref.get();
		try { 
			JSONObject obj = new JSONObject(grp);
			parseGroupUsers(mainGroup, obj);
		} catch (JSONException e) {
			e.printStackTrace();
			service.showErrorMessage(e.getMessage());
		} 
	} 
 
	public void load() { 
4
CodeRank
values Method Overview
Returns a Collection view of the values contained in this map.
See Code Examples for other Java 8 ConcurrentHashMap Methods: