示例#1
0
 @Override
 protected void postPollCheck() {
   if (log.isTraceEnabled()) {
     log.trace("postPollCheck on " + getEndpoint().getConfiguration().remoteServerInformation());
   }
   if (getEndpoint().isDisconnect()) {
     log.trace("postPollCheck disconnect from: {}", getEndpoint());
     disconnect();
   }
 }
示例#2
0
 @Override
 protected void doStop() throws Exception {
   super.doStop();
   disconnect();
 }