Package org.apache.activemq.blob
Class BlobTransferPolicy
java.lang.Object
org.apache.activemq.blob.BlobTransferPolicy
The policy for configuring how BLOBs (Binary Large OBjects) are transferred
out of band between producers, brokers and consumers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a copy of this policy objectprotected BlobDownloadStrategy
Returns the download strategy depending on the information from the uploadURL.protected BlobUploadStrategy
Returns the upload strategy depending on the information from the uploadURL.int
void
setBrokerUploadUrl
(String brokerUploadUrl) Called by the JMS client when a broker advertises its upload URLvoid
setBufferSize
(int bufferSize) Sets the default buffer size used when uploading or downloading filesvoid
setDefaultUploadUrl
(String defaultUploadUrl) Sets the default upload URL to use if the broker does not have a configured upload URLvoid
setUploadStrategy
(BlobUploadStrategy uploadStrategy) Sets the upload strategy to use for uploading BLOBs to some URLvoid
setUploadUrl
(String uploadUrl) Sets the upload URL to use explicitly on the client which will overload the default or the broker's URL.
-
Constructor Details
-
BlobTransferPolicy
public BlobTransferPolicy()
-
-
Method Details
-
copy
Returns a copy of this policy object -
getUploadUrl
-
setUploadUrl
Sets the upload URL to use explicitly on the client which will overload the default or the broker's URL. This allows the client to decide where to upload files to irrespective of the brokers configuration. -
getBrokerUploadUrl
-
setBrokerUploadUrl
Called by the JMS client when a broker advertises its upload URL -
getDefaultUploadUrl
-
setDefaultUploadUrl
Sets the default upload URL to use if the broker does not have a configured upload URL -
getUploadStrategy
-
getDownloadStrategy
-
setUploadStrategy
Sets the upload strategy to use for uploading BLOBs to some URL -
getBufferSize
public int getBufferSize() -
setBufferSize
public void setBufferSize(int bufferSize) Sets the default buffer size used when uploading or downloading files -
createUploadStrategy
Returns the upload strategy depending on the information from the uploadURL. Currently supportet HTTP- Returns:
-
createDownloadStrategy
Returns the download strategy depending on the information from the uploadURL. Currently supportet HTTP- Returns:
-