public Endpoint getEndpoint() { return delegate.getEndpoint(); }
public Executor getRequestExecutor() { return channel.getConnection().getEndpoint().getXnioWorker(); }
private Executor getRetryExecutor() { return retryExecutorWrapper.getExecutor(getChannel().getConnection().getEndpoint().getXnioWorker()); }
public RemotingTransactionServer getServerForConnection(Connection connection) { if (connection.getEndpoint() != endpoint) { throw Log.log.invalidConnectionEndpoint(); } final Attachments attachments = connection.getAttachments(); RemotingTransactionServer server = attachments.getAttachment(KEY); if (server == null) { server = new RemotingTransactionServer(this, connection); RemotingTransactionServer appearing = attachments.attachIfAbsent(KEY, server); if (appearing != null) { server = appearing; } } return server; }
ProtocolV1ObjectResolver(final Connection connection, final boolean preferUri) { final String remoteEndpointName = connection.getRemoteEndpointName(); peerNodeAffinity = remoteEndpointName == null ? null : new NodeAffinity(remoteEndpointName); final String localEndpointName = connection.getEndpoint().getName(); selfNodeAffinity = localEndpointName == null ? null : new NodeAffinity(localEndpointName); this.preferUri = preferUri; final URI peerURI = connection.getPeerURI(); peerUriAffinity = peerURI == null ? null : (URIAffinity) Affinity.forUri(peerURI); }
ProtocolV3ObjectResolver(final Connection connection, final boolean preferUri) { final String remoteEndpointName = connection.getRemoteEndpointName(); peerNodeAffinity = remoteEndpointName == null ? null : new NodeAffinity(remoteEndpointName); final String localEndpointName = connection.getEndpoint().getName(); selfNodeAffinity = localEndpointName == null ? null : new NodeAffinity(localEndpointName); this.preferUri = preferUri; final URI peerURI = connection.getPeerURI(); peerUriAffinity = peerURI == null ? null : (URIAffinity) Affinity.forUri(peerURI); }
private static IoFuture<RemoteClientTransport> construct(final Channel channel) { FutureResult<RemoteClientTransport> futureResult = new FutureResult<>(channel.getConnection().getEndpoint().getXnioWorker()); channel.receiveMessage(new Channel.Receiver() { public void handleError(final Channel channel, final IOException error) {
final FutureResult<T> futureResult = new FutureResult<>(connection.getEndpoint().getXnioWorker()); final IoFuture<T> future = futureResult.getIoFuture(); existing = attachments.attachIfAbsent(key, future);
marshaller.writeObject(strongAffinityUpdate); } else { marshaller.writeObject(new NodeAffinity(channel.getConnection().getEndpoint().getName()));
public Endpoint getEndpoint() { return delegate.getEndpoint(); }
public Executor getRequestExecutor() { return channel.getConnection().getEndpoint().getXnioWorker(); }
public Executor getRequestExecutor() { return channel.getConnection().getEndpoint().getXnioWorker(); }
private Executor getRetryExecutor() { return retryExecutorWrapper.getExecutor(getChannel().getConnection().getEndpoint().getXnioWorker()); }
private Executor getRetryExecutor() { return retryExecutorWrapper.getExecutor(getChannel().getConnection().getEndpoint().getXnioWorker()); }
public RemotingTransactionServer getServerForConnection(Connection connection) { if (connection.getEndpoint() != endpoint) { throw Log.log.invalidConnectionEndpoint(); } final Attachments attachments = connection.getAttachments(); RemotingTransactionServer server = attachments.getAttachment(KEY); if (server == null) { server = new RemotingTransactionServer(this, connection); RemotingTransactionServer appearing = attachments.attachIfAbsent(KEY, server); if (appearing != null) { server = appearing; } } return server; }
ProtocolV3ObjectResolver(final Connection connection, final boolean preferUri) { final String remoteEndpointName = connection.getRemoteEndpointName(); peerNodeAffinity = remoteEndpointName == null ? null : new NodeAffinity(remoteEndpointName); final String localEndpointName = connection.getEndpoint().getName(); selfNodeAffinity = localEndpointName == null ? null : new NodeAffinity(localEndpointName); this.preferUri = preferUri; final URI peerURI = connection.getPeerURI(); peerUriAffinity = peerURI == null ? null : (URIAffinity) Affinity.forUri(peerURI); }
public RemotingTransactionServer getServerForConnection(Connection connection) { if (connection.getEndpoint() != endpoint) { throw Log.log.invalidConnectionEndpoint(); } final Attachments attachments = connection.getAttachments(); RemotingTransactionServer server = attachments.getAttachment(KEY); if (server == null) { server = new RemotingTransactionServer(this, connection); RemotingTransactionServer appearing = attachments.attachIfAbsent(KEY, server); if (appearing != null) { server = appearing; } } return server; }
ProtocolV1ObjectResolver(final Connection connection, final boolean preferUri) { final String remoteEndpointName = connection.getRemoteEndpointName(); peerNodeAffinity = remoteEndpointName == null ? null : new NodeAffinity(remoteEndpointName); final String localEndpointName = connection.getEndpoint().getName(); selfNodeAffinity = localEndpointName == null ? null : new NodeAffinity(localEndpointName); this.preferUri = preferUri; final URI peerURI = connection.getPeerURI(); peerUriAffinity = peerURI == null ? null : (URIAffinity) Affinity.forUri(peerURI); }
ProtocolV1ObjectResolver(final Connection connection, final boolean preferUri) { final String remoteEndpointName = connection.getRemoteEndpointName(); peerNodeAffinity = remoteEndpointName == null ? null : new NodeAffinity(remoteEndpointName); final String localEndpointName = connection.getEndpoint().getName(); selfNodeAffinity = localEndpointName == null ? null : new NodeAffinity(localEndpointName); this.preferUri = preferUri; final URI peerURI = connection.getPeerURI(); peerUriAffinity = peerURI == null ? null : (URIAffinity) Affinity.forUri(peerURI); }
ProtocolV3ObjectResolver(final Connection connection, final boolean preferUri) { final String remoteEndpointName = connection.getRemoteEndpointName(); peerNodeAffinity = remoteEndpointName == null ? null : new NodeAffinity(remoteEndpointName); final String localEndpointName = connection.getEndpoint().getName(); selfNodeAffinity = localEndpointName == null ? null : new NodeAffinity(localEndpointName); this.preferUri = preferUri; final URI peerURI = connection.getPeerURI(); peerUriAffinity = peerURI == null ? null : (URIAffinity) Affinity.forUri(peerURI); }