src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/AbstractEventStream.java
branchJEP-349-branch
changeset 58200 2d147d680311
parent 58197 0ef79bd7fb5c
child 58445 1893a674db04
equal deleted inserted replaced
58197:0ef79bd7fb5c 58200:2d147d680311
    43 import jdk.jfr.internal.Logger;
    43 import jdk.jfr.internal.Logger;
    44 import jdk.jfr.internal.SecuritySupport;
    44 import jdk.jfr.internal.SecuritySupport;
    45 
    45 
    46 /*
    46 /*
    47  * Purpose of this class is to simplify the implementation of
    47  * Purpose of this class is to simplify the implementation of
    48  * an event stream. In particular, it handles:
    48  * an event stream.
    49  *
       
    50  * - configuration storage
       
    51  * - atomic updates to a configuration
       
    52  * - dispatch mechanism
       
    53  * - error handling
       
    54  * - security
       
    55  *
       
    56  */
    49  */
    57 abstract class AbstractEventStream implements EventStream {
    50 abstract class AbstractEventStream implements EventStream {
    58     private final static AtomicLong counter = new AtomicLong(1);
    51     private final static AtomicLong counter = new AtomicLong(1);
    59 
    52 
    60     private final Object terminated = new Object();
    53     private final Object terminated = new Object();