@@ -17,7 +17,7 @@ public class BrokerSetting
1717 /// <summary>Producer,Consumer对Broker发送的发消息和拉消息除外的其他内部请求,以及后台管理控制台发送的查询请求使用的端口号,默认为5002
1818 /// </summary>
1919 public IPEndPoint AdminAddress { get ; set ; }
20- /// <summary>消息到达时是否立即通知相关的PullRequest,默认为false ;
20+ /// <summary>消息到达时是否立即通知相关的PullRequest,默认为true ;
2121 /// <remarks>
2222 /// 如果希望当前场景消息吞吐量不大且要求消息消费的实时性更高,可以考虑设置为true;设置为false时,最多在<see cref="CheckBlockingPullRequestMilliseconds"/>
2323 /// 的时间后,PullRequest会被通知到有新消息;也就是说,设置为false时,消息最多延迟<see cref="CheckBlockingPullRequestMilliseconds"/>。
@@ -53,7 +53,7 @@ public class BrokerSetting
5353 public int MessageMaxSize { get ; set ; }
5454 /// <summary>EQueue存储文件的根目录
5555 /// </summary>
56- public string FileStoreRootPath { get ; set ; }
56+ public string FileStoreRootPath { get ; private set ; }
5757 /// <summary>TCP通行层设置
5858 /// </summary>
5959 public SocketSetting SocketSetting { get ; set ; }
@@ -64,13 +64,13 @@ public class BrokerSetting
6464 /// </summary>
6565 public ChunkManagerConfig QueueChunkConfig { get ; set ; }
6666
67- public BrokerSetting ( string chunkFileStoreRootPath = @"c :\equeue-store" , int messageChunkDataSize = 256 * 1024 * 1024 , int chunkFlushInterval = 100 , int chunkCacheMaxPercent = 75 , int chunkCacheMinPercent = 40 , int maxLogRecordSize = 5 * 1024 * 1024 , int chunkWriteBuffer = 128 * 1024 , int chunkReadBuffer = 128 * 1024 , bool syncFlush = false , bool enableCache = true )
67+ public BrokerSetting ( string chunkFileStoreRootPath = @"d :\equeue-store" , int messageChunkDataSize = 256 * 1024 * 1024 , int chunkFlushInterval = 100 , int chunkCacheMaxPercent = 75 , int chunkCacheMinPercent = 40 , int maxLogRecordSize = 5 * 1024 * 1024 , int chunkWriteBuffer = 128 * 1024 , int chunkReadBuffer = 128 * 1024 , bool syncFlush = false , bool enableCache = true )
6868 {
6969 ProducerAddress = new IPEndPoint ( SocketUtils . GetLocalIPV4 ( ) , 5000 ) ;
7070 ConsumerAddress = new IPEndPoint ( SocketUtils . GetLocalIPV4 ( ) , 5001 ) ;
7171 AdminAddress = new IPEndPoint ( SocketUtils . GetLocalIPV4 ( ) , 5002 ) ;
7272
73- NotifyWhenMessageArrived = false ;
73+ NotifyWhenMessageArrived = true ;
7474 DeleteMessagesInterval = 1000 * 10 ;
7575 DeleteQueueMessagesInterval = 1000 * 10 ;
7676 PersistConsumeOffsetInterval = 1000 * 1 ;
0 commit comments