com.aelitis.azureus.core.download
Class EnhancedDownloadManager.bufferETAProvider

java.lang.Object
  extended by com.aelitis.azureus.core.download.EnhancedDownloadManager.bufferETAProvider
All Implemented Interfaces:
PieceRTAProvider
Enclosing class:
EnhancedDownloadManager

protected class EnhancedDownloadManager.bufferETAProvider
extends Object
implements PieceRTAProvider


Constructor Summary
protected EnhancedDownloadManager.bufferETAProvider()
           
 
Method Summary
protected  void activate(PiecePicker picker)
           
protected  void checkActivation(PiecePicker picker)
           
protected  void deactivate(PiecePicker picker)
           
 long getBlockingPosition()
           
 long getCurrentPosition()
           
 long getStartPosition()
           
 long getStartTime()
           
 String getUserAgent()
          Returns the user-agent associated with this RTA activity, if known
 void 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnhancedDownloadManager.bufferETAProvider

protected EnhancedDownloadManager.bufferETAProvider()
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 interface PieceRTAProvider

getCurrentPosition

public long getCurrentPosition()
Specified by:
getCurrentPosition in interface PieceRTAProvider

getStartTime

public long getStartTime()
Specified by:
getStartTime in interface PieceRTAProvider

getStartPosition

public long getStartPosition()
Specified by:
getStartPosition in interface PieceRTAProvider

getBlockingPosition

public long getBlockingPosition()
Specified by:
getBlockingPosition in interface PieceRTAProvider

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 interface PieceRTAProvider

getUserAgent

public String getUserAgent()
Description copied from interface: PieceRTAProvider
Returns the user-agent associated with this RTA activity, if known

Specified by:
getUserAgent in interface PieceRTAProvider
Returns: