コード例 #1
0
 public void failed(SessionRequest request) {
   System.err.println(request.getRemoteAddress() + " - request failed");
   IOException ex = request.getException();
   if (ex != null) {
     ex.printStackTrace();
   }
   this.request.cancel();
 }
コード例 #2
0
 public void timeout(SessionRequest request) {
   System.out.println(request.getRemoteAddress() + " - request timed out");
   this.request.cancel();
 }
コード例 #3
0
 public void cancelled(SessionRequest request) {
   System.out.println(request.getRemoteAddress() + " - request cancelled");
   this.request.cancel();
 }
コード例 #4
0
 public void completed(SessionRequest request) {
   System.out.println(request.getRemoteAddress() + " - request successful");
 }