Example #1
0
 public void closeConnection() {
   readerAndWriter.close();
 }
Example #2
0
 /**
  * Sends the reply to client held by this proxy. This method has to be called after client is
  * initialized.
  *
  * @param clientReply - reply send to underlying client
  * @throws IllegalStateException if called before client is initialized
  */
 public void send(ClientReply clientReply) throws IOException {
   if (!initialized) {
     throw new IllegalStateException("Connection not initialized yet");
   }
   readerAndWriter.send(clientReply.toByteArray());
 }
Example #3
0
 public SelectorThread getSelectorThread() {
   return readerAndWriter.getSelectorThread();
 }