org.gudy.azureus2.plugins.disk
Interface DiskManager
- All Known Implementing Classes:
- DiskManagerImpl
public interface DiskManager
- Author:
- parg
BLOCK_SIZE
static final int BLOCK_SIZE
- See Also:
- Constant Field Values
read
DiskManagerReadRequest read(int piece_number,
int offset,
int length,
DiskManagerReadRequestListener listener)
throws DiskManagerException
- Throws:
DiskManagerException
write
DiskManagerWriteRequest write(int piece_number,
int offset,
PooledByteBuffer data,
DiskManagerWriteRequestListener listener)
throws DiskManagerException
- Data length has to be consistent with block layout of the piece and piece size
- Parameters:
piece_number
- offset
- data
- listener
-
- Returns:
-
- Throws:
DiskManagerException