src/jdk.jfr/share/classes/jdk/jfr/consumer/EventDirectoryStream.java
branchJEP-349-branch
changeset 57376 8e8a06a3059c
parent 57373 400db63e4937
child 57380 6a7e7743b82f
equal deleted inserted replaced
57375:3efa9b992c4d 57376:8e8a06a3059c
   100                     location.release();
   100                     location.release();
   101                 }
   101                 }
   102             }
   102             }
   103             runCloseActions();
   103             runCloseActions();
   104         }
   104         }
       
   105 
       
   106         public void setReuse(boolean reuse) {
       
   107             // ignore hint
       
   108         }
   105     }
   109     }
   106 
   110 
   107     private final EventSetConsumer eventConsumer;
   111     private final EventSetConsumer eventConsumer;
   108 
   112 
   109     public EventDirectoryStream(AccessControlContext acc) throws IOException {
   113     public EventDirectoryStream(AccessControlContext acc) throws IOException {
   170 
   174 
   171     @Override
   175     @Override
   172     public void awaitTermination() {
   176     public void awaitTermination() {
   173         eventConsumer.awaitTermination(Duration.ofMillis(0));
   177         eventConsumer.awaitTermination(Duration.ofMillis(0));
   174     }
   178     }
       
   179 
       
   180     @Override
       
   181     public void setReuse(boolean reuse) {
       
   182         eventConsumer.setReuse(reuse);
       
   183     }
   175 }
   184 }