public Attachments getAttachments() { return delegate.getAttachments(); }
TransactionServerChannel(final RemotingTransactionServer server, final Channel channel, final LocalTransactionContext localTransactionContext) { this.server = server; this.channel = channel; this.localTransactionContext = localTransactionContext; messageTracker = new MessageTracker(channel, channel.getOption(RemotingOptions.MAX_OUTBOUND_MESSAGES).intValue()); channel.getConnection().getAttachments().attach(KEY, this); }
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; }
@NotNull RemotingOperations getOperations(Connection connection) throws IOException { final Attachments attachments = connection.getAttachments(); RemotingOperations operations = attachments.getAttachment(key); if (operations != null) {
final Attachments attachments = connection.getAttachments();
public Attachments getAttachments() { return delegate.getAttachments(); }
TransactionServerChannel(final RemotingTransactionServer server, final Channel channel, final LocalTransactionContext localTransactionContext) { this.server = server; this.channel = channel; this.localTransactionContext = localTransactionContext; messageTracker = new MessageTracker(channel, channel.getOption(RemotingOptions.MAX_OUTBOUND_MESSAGES).intValue()); channel.getConnection().getAttachments().attach(KEY, this); }
TransactionServerChannel(final RemotingTransactionServer server, final Channel channel, final LocalTransactionContext localTransactionContext) { this.server = server; this.channel = channel; this.localTransactionContext = localTransactionContext; messageTracker = new MessageTracker(channel, channel.getOption(RemotingOptions.MAX_OUTBOUND_MESSAGES).intValue()); channel.getConnection().getAttachments().attach(KEY, this); }
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; }
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; }
@NotNull RemotingOperations getOperations(Connection connection) throws IOException { final Attachments attachments = connection.getAttachments(); RemotingOperations operations = attachments.getAttachment(key); if (operations != null) {
@NotNull RemotingOperations getOperations(Connection connection) throws IOException { final Attachments attachments = connection.getAttachments(); RemotingOperations operations = attachments.getAttachment(key); if (operations != null) {
final Attachments attachments = connection.getAttachments();