1 11 package com.sun.jdi.connect.spi; 12 13 import java.io.IOException ; 14 15 16 public abstract class TransportService { 17 public abstract static class Capabilities { 18 public abstract boolean supportsAcceptTimeout(); 19 public abstract boolean supportsAttachTimeout(); 20 public abstract boolean supportsHandshakeTimeout(); 21 public abstract boolean supportsMultipleConnections(); 22 } 23 public abstract static class ListenKey { 24 public abstract String address(); 25 } 26 public abstract Connection accept(ListenKey listenKey, long attachTimeout, long handshakeTimeout) throws IOException ; 27 public abstract Connection attach(String address, long attachTimeout, long handshakeTimeout) throws IOException ; 28 public abstract TransportService.Capabilities capabilities(); 29 public abstract String description(); 30 public abstract String name(); 31 public abstract TransportService.ListenKey startListening() throws IOException ; 32 public abstract TransportService.ListenKey startListening(String arg1) throws IOException ; 33 public abstract void stopListening(TransportService.ListenKey arg1) throws IOException ; 34 } 35 | Popular Tags |