FileTransmission

public abstract class FileTransmission

Fields

createdTimestamp

protected final long createdTimestamp

id

protected final String id

lock

protected ReentrantLock lock

status

protected final RegistrationStatus status

touchedTimestamp

protected long touchedTimestamp

Constructors

FileTransmission

public FileTransmission(String id)

Methods

cleanUp

public abstract void cleanUp()

getCreatedTimestamp

public long getCreatedTimestamp()

getFile

public abstract FileProperties getFile(String fileId)

getId

public String getId()

getMaxChunkSize

public long getMaxChunkSize()

getMaxFileSize

public long getMaxFileSize()

getRegistrationStatus

public RegistrationStatus getRegistrationStatus()

getTouchedTimestamp

public long getTouchedTimestamp()

getTransmissionSettings

public abstract FileTransmissionSettings getTransmissionSettings()

isExpired

public boolean isExpired()

touch

public void touch()