mirror of https://github.com/apache/activemq.git
minor fix to avoid exception in some test cases
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@515193 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
800fba7f6c
commit
1807dbbba3
|
@ -1447,6 +1447,9 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
}
|
||||
|
||||
public BlobTransferPolicy getBlobTransferPolicy() {
|
||||
if (blobTransferPolicy == null) {
|
||||
blobTransferPolicy = createBlobTransferPolicy();
|
||||
}
|
||||
return blobTransferPolicy;
|
||||
}
|
||||
|
||||
|
@ -1982,4 +1985,8 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
public String toString() {
|
||||
return "ActiveMQConnection {id="+info.getConnectionId()+",clientId="+info.getClientId()+",started="+started.get()+"}";
|
||||
}
|
||||
|
||||
protected BlobTransferPolicy createBlobTransferPolicy() {
|
||||
return new BlobTransferPolicy();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue