equal
deleted
inserted
replaced
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(); |