示例#1
0
 protected internal override long GetReadTimeout(RequestType type, long readTimeout)
 {
     if (HaRequestTypes_Type.AcquireExclusiveLock.@is(type) || HaRequestTypes_Type.AcquireSharedLock.@is(type))
     {
         return(_lockReadTimeoutMillis);
     }
     if (HaRequestTypes_Type.CopyStore.@is(type))
     {
         return(readTimeout * 2);
     }
     return(readTimeout);
 }
示例#2
0
 protected internal override bool ShouldCheckStoreId(RequestType type)
 {
     return(!HaRequestTypes_Type.CopyStore.@is(type));
 }
示例#3
0
 protected internal override void ResponseWritten(RequestType type, Channel channel, RequestContext context)
 {
 }