1 7 8 package com.sun.corba.se.pept.transport; 9 10 import java.io.IOException ; 11 12 import com.sun.corba.se.pept.encoding.InputObject; 13 import com.sun.corba.se.pept.encoding.OutputObject; 14 import com.sun.corba.se.pept.protocol.MessageMediator; 15 import com.sun.corba.se.pept.transport.EventHandler; 16 17 18 24 public interface Connection 25 { 26 39 public boolean shouldRegisterReadEvent(); 40 41 54 public boolean shouldRegisterServerReadEvent(); 56 61 public boolean read(); 62 63 67 public void close(); 68 69 72 80 public Acceptor getAcceptor(); 81 82 90 public ContactInfo getContactInfo(); 91 92 100 public EventHandler getEventHandler(); 101 102 114 public boolean isServer(); 115 116 122 public boolean isBusy(); 123 124 130 public long getTimeStamp(); 131 132 138 public void setTimeStamp(long time); 139 140 145 public void setState(String state); 146 147 156 public void writeLock(); 157 158 161 public void writeUnlock(); 162 163 170 public void sendWithoutLock(OutputObject outputObject); 171 172 181 public void registerWaiter(MessageMediator messageMediator); 182 183 193 public InputObject waitForResponse(MessageMediator messageMediator); 194 195 202 public void unregisterWaiter(MessageMediator messageMediator); 203 204 public void setConnectionCache(ConnectionCache connectionCache); 205 206 public ConnectionCache getConnectionCache(); 207 } 208 209 211 212 213 214 | Popular Tags |