private SharedConnection<byte[]> getOrCreateSharedConnection() { synchronized (this.connectionMonitor) { if (this.connection == null) { this.connection = new SharedConnection<>(connectionProvider, false); } return this.connection; } }
private SharedConnection<ByteBuffer> getOrCreateSharedReactiveConnection() { synchronized (this.connectionMonitor) { if (this.reactiveConnection == null) { this.reactiveConnection = new SharedConnection<>(reactiveConnectionProvider, true); } return this.reactiveConnection; } }
private SharedConnection<byte[]> getOrCreateSharedConnection() { synchronized (this.connectionMonitor) { if (this.connection == null) { this.connection = new SharedConnection<>(connectionProvider, false); } return this.connection; } }
private SharedConnection<ByteBuffer> getOrCreateSharedReactiveConnection() { synchronized (this.connectionMonitor) { if (this.reactiveConnection == null) { this.reactiveConnection = new SharedConnection<>(reactiveConnectionProvider, true); } return this.reactiveConnection; } }
private SharedConnection<ByteBuffer> getOrCreateSharedReactiveConnection() { synchronized (this.connectionMonitor) { if (this.reactiveConnection == null) { this.reactiveConnection = new SharedConnection<>(reactiveConnectionProvider, true); } return this.reactiveConnection; } }
private SharedConnection<byte[]> getOrCreateSharedConnection() { synchronized (this.connectionMonitor) { if (this.connection == null) { this.connection = new SharedConnection<>(connectionProvider, false); } return this.connection; } }