Exemplo 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();
   }
 }
Exemplo n.º 2
0
 @Override
 public void join(int timeout, TimeUnit unit) throws TransportException {
   close.await(timeout, unit);
 }
Exemplo n.º 3
0
 @Override
 public void join() throws TransportException {
   close.await();
 }