APIdia Launch Partner
Top Fields Constructors Methods
jdk.jfr.internal

public final Class RepositoryChunk

extends Object
Class Inheritance
Imports
java.io.IOException, .RandomAccessFile, java.nio.channels.FileChannel, .ReadableByteChannel, java.nio.file.Files, .Path, .StandardOpenOption, java.time.Instant, java.util.Comparator

Field Summary

Modifier and TypeField and Description
private final Path
pack-priv static final Comparator<RepositoryChunk>
private Instant
private int
private long
private Instant
private final RandomAccessFile

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
private void
pack-priv boolean
finish(Instant endTime)

public long
public Instant
public Path
public long
public Instant
public boolean
inInterval(Instant startTime, Instant endTime)

public boolean
pack-priv boolean
pack-priv ReadableByteChannel
public synchronized void
public void
setStartTime(Instant timestamp)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public synchronized void
use()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

chunkFileback to summary
private final Path chunkFile
END_TIME_COMPARATORback to summary
pack-priv static final Comparator<RepositoryChunk> END_TIME_COMPARATOR
endTimeback to summary
private Instant endTime
refCountback to summary
private int refCount
sizeback to summary
private long size
startTimeback to summary
private Instant startTime
unFinishedRAFback to summary
private final RandomAccessFile unFinishedRAF

Constructor Detail

RepositoryChunkback to summary
pack-priv RepositoryChunk(Path path) throws Exception

Method Detail

deleteback to summary
private void delete(Path f)
destroyback to summary
private void destroy()
finishback to summary
pack-priv boolean finish(Instant endTime)
getCurrentFileSizeback to summary
public long getCurrentFileSize()
getEndTimeback to summary
public Instant getEndTime()
getFileback to summary
public Path getFile()
getSizeback to summary
public long getSize()
getStartTimeback to summary
public Instant getStartTime()
inIntervalback to summary
public boolean inInterval(Instant startTime, Instant endTime)
isFinishedback to summary
public boolean isFinished()
isMissingFileback to summary
pack-priv boolean isMissingFile()
newChannelback to summary
pack-priv ReadableByteChannel newChannel() throws IOException
releaseback to summary
public synchronized void release()
setStartTimeback to summary
public void setStartTime(Instant timestamp)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
useback to summary
public synchronized void use()