public class BlobTransferPolicy extends Object
Constructor and Description |
---|
BlobTransferPolicy() |
Modifier and Type | Method and Description |
---|---|
BlobTransferPolicy |
copy()
Returns a copy of this policy object
|
protected BlobDownloadStrategy |
createDownloadStrategy()
Returns the download strategy depending on the information from the
uploadURL.
|
protected BlobUploadStrategy |
createUploadStrategy()
Returns the upload strategy depending on the information from the
uploadURL.
|
String |
getBrokerUploadUrl() |
int |
getBufferSize() |
String |
getDefaultUploadUrl() |
BlobDownloadStrategy |
getDownloadStrategy() |
BlobUploadStrategy |
getUploadStrategy() |
String |
getUploadUrl() |
void |
setBrokerUploadUrl(String brokerUploadUrl)
Called by the JMS client when a broker advertises its upload URL
|
void |
setBufferSize(int bufferSize)
Sets the default buffer size used when uploading or downloading files
|
void |
setDefaultUploadUrl(String defaultUploadUrl)
Sets the default upload URL to use if the broker does not
have a configured upload URL
|
void |
setUploadStrategy(BlobUploadStrategy uploadStrategy)
Sets the upload strategy to use for uploading BLOBs to some URL
|
void |
setUploadUrl(String uploadUrl)
Sets the upload URL to use explicitly on the client which will
overload the default or the broker's URL.
|
public BlobTransferPolicy()
public BlobTransferPolicy copy()
public String getUploadUrl()
public void setUploadUrl(String uploadUrl)
public String getBrokerUploadUrl()
public void setBrokerUploadUrl(String brokerUploadUrl)
public String getDefaultUploadUrl()
public void setDefaultUploadUrl(String defaultUploadUrl)
public BlobUploadStrategy getUploadStrategy()
public BlobDownloadStrategy getDownloadStrategy()
public void setUploadStrategy(BlobUploadStrategy uploadStrategy)
public int getBufferSize()
public void setBufferSize(int bufferSize)
protected BlobUploadStrategy createUploadStrategy()
protected BlobDownloadStrategy createDownloadStrategy()
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.