public O getInterruptibly() throws IOException, InterruptedException, CancellationException { return type.cast(parent.getInterruptibly()); }
EJBClientChannel getClientChannel(final Connection connection) throws IOException { try { return serviceHandle.getClientService(connection, OptionMap.EMPTY).getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new InterruptedIOException(); } }
public T getInterruptibly() throws IOException, InterruptedException { return convert(delegate.getInterruptibly()); }
RemoteClientTransport getRemoteTransport(ConnectionPeerIdentity peerIdentity) throws NamingException { final Endpoint endpoint = provider.getEndpoint(); if (endpoint == null) { throw Messages.log.noRemotingEndpoint(); } try { final Connection connection = peerIdentity.getConnection(); final IoFuture<RemoteClientTransport> future = RemoteClientTransport.SERVICE_HANDLE.getClientService(connection, OptionMap.EMPTY); try { return future.getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); future.cancel(); throw Messages.log.operationInterrupted(); } } catch (IOException e) { if (e.getCause() instanceof NamingException) { throw (NamingException) e.getCause(); } throw Messages.log.connectFailed(e); } }
ConnectionHandlerFactory chf = ioFuture.getInterruptibly(); return chf;
protected SessionID createSession(final EJBReceiverSessionCreationContext context) throws Exception { final StatelessEJBLocator<?> statelessLocator = context.getClientInvocationContext().getLocator().asStateless(); final AuthenticationContext authenticationContext = context.getAuthenticationContext(); try { IoFuture<ConnectionPeerIdentity> futureConnection = getConnection(context.getClientInvocationContext(), context.getClientInvocationContext().getDestination(), authenticationContext); final ConnectionPeerIdentity identity = futureConnection.getInterruptibly(); final EJBClientChannel ejbClientChannel = getClientChannel(identity.getConnection()); final StatefulEJBLocator<?> result = ejbClientChannel.openSession(statelessLocator, identity, context.getClientInvocationContext()); return result.getSessionId(); } catch (IOException e) { final RequestSendFailedException failed = new RequestSendFailedException("Failed to create stateful EJB: " + e.getMessage(), true); failed.initCause(e); throw failed; } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new CreateException("Stateful EJB creation interrupted"); } }
public O getInterruptibly() throws IOException, InterruptedException, CancellationException { return type.cast(parent.getInterruptibly()); }
EJBClientChannel getClientChannel(final Connection connection) throws IOException { try { return serviceHandle.getClientService(connection, OptionMap.EMPTY).getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new InterruptedIOException(); } }
EJBClientChannel getClientChannel(final Connection connection) throws IOException { try { return serviceHandle.getClientService(connection, OptionMap.EMPTY).getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new InterruptedIOException(); } }
public T getInterruptibly() throws IOException, InterruptedException { return convert(delegate.getInterruptibly()); }
RemoteClientTransport getRemoteTransport(ConnectionPeerIdentity peerIdentity) throws NamingException { final Endpoint endpoint = provider.getEndpoint(); if (endpoint == null) { throw Messages.log.noRemotingEndpoint(); } try { final Connection connection = peerIdentity.getConnection(); final IoFuture<RemoteClientTransport> future = RemoteClientTransport.SERVICE_HANDLE.getClientService(connection, OptionMap.EMPTY); try { return future.getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); future.cancel(); throw Messages.log.operationInterrupted(); } } catch (IOException e) { if (e.getCause() instanceof NamingException) { throw (NamingException) e.getCause(); } throw Messages.log.connectFailed(e); } }
RemoteClientTransport getRemoteTransport(ConnectionPeerIdentity peerIdentity) throws NamingException { final Endpoint endpoint = provider.getEndpoint(); if (endpoint == null) { throw Messages.log.noRemotingEndpoint(); } try { final Connection connection = peerIdentity.getConnection(); final IoFuture<RemoteClientTransport> future = RemoteClientTransport.SERVICE_HANDLE.getClientService(connection, OptionMap.EMPTY); try { return future.getInterruptibly(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); future.cancel(); throw Messages.log.operationInterrupted(); } } catch (IOException e) { if (e.getCause() instanceof NamingException) { throw (NamingException) e.getCause(); } throw Messages.log.connectFailed(e); } }
protected SessionID createSession(final EJBReceiverSessionCreationContext context) throws Exception { final StatelessEJBLocator<?> statelessLocator = context.getClientInvocationContext().getLocator().asStateless(); final AuthenticationContext authenticationContext = context.getAuthenticationContext(); try { IoFuture<ConnectionPeerIdentity> futureConnection = getConnection(context.getClientInvocationContext(), context.getClientInvocationContext().getDestination(), authenticationContext); final ConnectionPeerIdentity identity = futureConnection.getInterruptibly(); final EJBClientChannel ejbClientChannel = getClientChannel(identity.getConnection()); final StatefulEJBLocator<?> result = ejbClientChannel.openSession(statelessLocator, identity, context.getClientInvocationContext()); return result.getSessionId(); } catch (IOException e) { final RequestSendFailedException failed = new RequestSendFailedException("Failed to create stateful EJB: " + e.getMessage(), true); failed.initCause(e); throw failed; } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new CreateException("Stateful EJB creation interrupted"); } }
protected SessionID createSession(final EJBReceiverSessionCreationContext context) throws Exception { final StatelessEJBLocator<?> statelessLocator = context.getClientInvocationContext().getLocator().asStateless(); final AuthenticationContext authenticationContext = context.getAuthenticationContext(); try { IoFuture<ConnectionPeerIdentity> futureConnection = getConnection(context.getClientInvocationContext(), context.getClientInvocationContext().getDestination(), authenticationContext); final ConnectionPeerIdentity identity = futureConnection.getInterruptibly(); final EJBClientChannel ejbClientChannel = getClientChannel(identity.getConnection()); final StatefulEJBLocator<?> result = ejbClientChannel.openSession(statelessLocator, identity, context.getClientInvocationContext()); return result.getSessionId(); } catch (IOException e) { final RequestSendFailedException failed = new RequestSendFailedException("Failed to create stateful EJB: " + e.getMessage(), true); failed.initCause(e); throw failed; } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new CreateException("Stateful EJB creation interrupted"); } }
UndertowClient.getInstance().connect(portForwardURI, xnioWorker, xnioSsl, bufferPool, DEFAULT_OPTIONS); connection = connectFuture.getInterruptibly();
UndertowClient.getInstance().connect(portForwardURI, xnioWorker, xnioSsl, bufferPool, DEFAULT_OPTIONS); connection = connectFuture.getInterruptibly();