Package unlimited.fc.client.engine
Class TransferRequestData.TransferRequestBuilder<T extends TransferRequestData.TransferRequestBuilder<T>>
- java.lang.Object
-
- unlimited.fc.client.engine.TransferRequestData.TransferRequestBuilder<T>
-
- Direct Known Subclasses:
DownloadTransferRequestData.Builder,UploadTransferRequestData.Builder
- Enclosing class:
- TransferRequestData
public abstract static class TransferRequestData.TransferRequestBuilder<T extends TransferRequestData.TransferRequestBuilder<T>> extends java.lang.ObjectBUILDER DEFINITION
-
-
Field Summary
Fields Modifier and Type Field Description protected intbandwidthprotected intblockSizeprotected java.nio.file.PathlocalPathprotected intmodeprotected intnumEncodersprotected longoffsetprotected java.lang.StringremoteFileprotected longsizeprotected intunitSize
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransferRequestBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TransferRequestDatabuild()protected abstract Tself()TwithBandwidth(int bandwidth)TwithBlockSize(int blockSize)TwithLocalPath(java.nio.file.Path localPath)TwithMode(int mode)TwithNumEncoders(int numEncoders)TwithOffset(long offset)TwithRemoteFile(java.lang.String remoteFile)TwithSize(long size)TwithUnitSize(int unitSize)
-
-
-
Field Detail
-
localPath
protected java.nio.file.Path localPath
-
remoteFile
protected java.lang.String remoteFile
-
bandwidth
protected int bandwidth
-
offset
protected long offset
-
numEncoders
protected int numEncoders
-
blockSize
protected int blockSize
-
unitSize
protected int unitSize
-
mode
protected int mode
-
size
protected long size
-
-
Method Detail
-
withLocalPath
public T withLocalPath(java.nio.file.Path localPath)
-
withRemoteFile
public T withRemoteFile(java.lang.String remoteFile)
-
withBandwidth
public T withBandwidth(int bandwidth)
-
withOffset
public T withOffset(long offset)
-
withNumEncoders
public T withNumEncoders(int numEncoders)
-
withBlockSize
public T withBlockSize(int blockSize)
-
withUnitSize
public T withUnitSize(int unitSize)
-
withMode
public T withMode(int mode)
-
withSize
public T withSize(long size)
-
self
protected abstract T self()
-
build
protected abstract TransferRequestData build()
-
-