Ejemplo n.º 1
0
 @Override
 public void reqService(Service service) throws TransportException {
   serviceAccept.lock();
   try {
     serviceAccept.clear();
     sendServiceRequest(service.getName());
     serviceAccept.await(timeoutMs, TimeUnit.MILLISECONDS);
     setService(service);
   } finally {
     serviceAccept.unlock();
   }
 }
Ejemplo n.º 2
0
 @Override
 public void join(int timeout, TimeUnit unit) throws TransportException {
   close.await(timeout, unit);
 }
Ejemplo n.º 3
0
 @Override
 public void join() throws TransportException {
   close.await();
 }