EMMA Coverage Report (generated Tue Apr 17 08:51:20 BST 2007)
[all classes][org.jtoolkit.essence.concurrency]

COVERAGE SUMMARY FOR SOURCE FILE [Concurrency.java]

nameclass, %method, %block, %line, %
Concurrency.java100% (1/1)100% (4/4)100% (84/84)100% (10/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Concurrency100% (1/1)100% (4/4)100% (84/84)100% (10/10)
<static initializer> 100% (1/1)100% (64/64)100% (6/6)
Concurrency (String, int, int, int): void 100% (1/1)100% (11/11)100% (4/4)
valueOf (String): Concurrency 100% (1/1)100% (5/5)100% (1/1)
values (): Concurrency [] 100% (1/1)100% (4/4)100% (1/1)

1package org.jtoolkit.essence.concurrency;
2 
3/*
4   Copyright 2006 Peter Lawrey
5 
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   You may obtain a copy of the License at
9 
10       http://www.apache.org/licenses/LICENSE-2.0
11 
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17*/
18 
19/**
20 * Represents the level of concurrency a thread safe component can achieve.
21 *
22 * @author Peter Lawrey
23 */
24public enum Concurrency {
25    IMMUTABLE(Integer.MAX_VALUE, 0),
26    SYNCHRONIZED(1,1),
27    THREAD_LOCAL(1,1),
28    CONCURRENT_READ(Integer.MAX_VALUE, 1),
29    CONCURRENT_READ_WRITE(Integer.MAX_VALUE, Integer.MAX_VALUE);
30 
31    public final int concurrentReads;
32    public final int concurrentWrtes;
33 
34    Concurrency(int concurrentReads, int concurrentWrtes) {
35        this.concurrentReads = concurrentReads;
36        this.concurrentWrtes = concurrentWrtes;
37    }
38}
39 

[all classes][org.jtoolkit.essence.concurrency]
EMMA 2.0.5312 (C) Vladimir Roubtsov