Package com.biglybt.core.download
Class EnhancedDownloadManager.bufferETAProvider
- java.lang.Object
-
- com.biglybt.core.download.EnhancedDownloadManager.bufferETAProvider
-
- All Implemented Interfaces:
PieceRTAProvider
- Enclosing class:
- EnhancedDownloadManager
protected class EnhancedDownloadManager.bufferETAProvider extends java.lang.Object implements PieceRTAProvider
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
active
private boolean
is_buffering
private long
last_buffer_size
private long
last_buffer_size_time
private long
last_recalc
private long[]
piece_rtas
-
Constructor Summary
Constructors Modifier Constructor Description protected
bufferETAProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(PiecePicker picker)
protected void
checkActivation(PiecePicker picker)
protected void
deactivate(PiecePicker picker)
long
getBlockingPosition()
long
getCurrentPosition()
long
getStartPosition()
long
getStartTime()
java.lang.String
getUserAgent()
Returns the user-agent associated with this RTA activity, if knownvoid
setBufferMillis(long millis, long delay_millis)
Sets an external view of how much buffer is being maintained by an external source.long[]
updateRTAs(PiecePicker picker)
-
-
-
Method Detail
-
activate
protected void activate(PiecePicker picker)
-
deactivate
protected void deactivate(PiecePicker picker)
-
checkActivation
protected void checkActivation(PiecePicker picker)
-
updateRTAs
public long[] updateRTAs(PiecePicker picker)
- Specified by:
updateRTAs
in interfacePieceRTAProvider
-
getCurrentPosition
public long getCurrentPosition()
- Specified by:
getCurrentPosition
in interfacePieceRTAProvider
-
getStartTime
public long getStartTime()
- Specified by:
getStartTime
in interfacePieceRTAProvider
-
getStartPosition
public long getStartPosition()
- Specified by:
getStartPosition
in interfacePieceRTAProvider
-
getBlockingPosition
public long getBlockingPosition()
- Specified by:
getBlockingPosition
in interfacePieceRTAProvider
-
setBufferMillis
public void setBufferMillis(long millis, long delay_millis)
Description copied from interface:PieceRTAProvider
Sets an external view of how much buffer is being maintained by an external source. This reduces piece urgency and therefore reduces discard.- Specified by:
setBufferMillis
in interfacePieceRTAProvider
-
getUserAgent
public java.lang.String getUserAgent()
Description copied from interface:PieceRTAProvider
Returns the user-agent associated with this RTA activity, if known- Specified by:
getUserAgent
in interfacePieceRTAProvider
- Returns:
-
-