コード例 #1
0
 @Override
 protected void doBeginRead() throws Exception {
   StreamConnection conn = connection();
   if (conn == null) {
     return;
   }
   ConduitStreamSourceChannel source = conn.getSourceChannel();
   if (!source.isReadResumed()) {
     source.resumeReads();
   }
 }
コード例 #2
0
 private void removeReadOp(ConduitStreamSourceChannel channel) {
   if (channel.isReadResumed()) {
     channel.suspendReads();
   }
 }