src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java
changeset 59226 a0f39cc47387
parent 59010 d4cae08239f7
equal deleted inserted replaced
59225:80e1201f6c9a 59226:a0f39cc47387
    83     private TimerTask stopTask;
    83     private TimerTask stopTask;
    84     private TimerTask startTask;
    84     private TimerTask startTask;
    85     private AccessControlContext noDestinationDumpOnExitAccessControlContext;
    85     private AccessControlContext noDestinationDumpOnExitAccessControlContext;
    86     private boolean shuoldWriteActiveRecordingEvent = true;
    86     private boolean shuoldWriteActiveRecordingEvent = true;
    87     private Duration flushInterval = Duration.ofSeconds(1);
    87     private Duration flushInterval = Duration.ofSeconds(1);
       
    88     private long finalStartChunkNanos = Long.MIN_VALUE;
    88 
    89 
    89     PlatformRecording(PlatformRecorder recorder, long id) {
    90     PlatformRecording(PlatformRecorder recorder, long id) {
    90         // Typically the access control context is taken
    91         // Typically the access control context is taken
    91         // when you call dump(Path) or setDdestination(Path),
    92         // when you call dump(Path) or setDdestination(Path),
    92         // but if no destination is set and dumponexit=true
    93         // but if no destination is set and dumponexit=true
   809                 return flushInterval.toMillis();
   810                 return flushInterval.toMillis();
   810             }
   811             }
   811             return Long.MAX_VALUE;
   812             return Long.MAX_VALUE;
   812         }
   813         }
   813     }
   814     }
       
   815 
       
   816     public long getFinalChunkStartNanos() {
       
   817         return finalStartChunkNanos;
       
   818     }
       
   819 
       
   820     public void setFinalStartnanos(long chunkStartNanos) {
       
   821        this.finalStartChunkNanos = chunkStartNanos;
       
   822     }
   814 }
   823 }