Sha256: 3f3e3179a6f2d79b7bca68415bc9bbf6b7012df04e166ceac9e104f85fde4374

Contents?: true

Size: 651 Bytes

Versions: 7

Compression:

Stored size: 651 Bytes

Contents

const ConnectionType = require('../../utils/ConnectionType');
const IConnectionData = require('./IConnectionData');

class InMemoryConnectionData extends IConnectionData {
    constructor() {
        super();
        this._connectionType = ConnectionType.IN_MEMORY;
        this._hostname = ""
    }

    get connectionType() {
        return this._connectionType;
    }

    get hostname() {
        return this._hostname;
    }

    serializeConnectionData() {
        return [this.connectionType, 0, 0, 0, 0, 0, 0];
    }

    equals(other) {
        return other instanceof InMemoryConnectionData;
    }
}

module.exports = InMemoryConnectionData;

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.5.8 lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js
javonet-ruby-sdk-2.5.7 lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js
javonet-ruby-sdk-2.5.6 lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js
javonet-ruby-sdk-2.5.5 lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js
javonet-ruby-sdk-2.5.4 lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js
javonet-ruby-sdk-2.5.3 lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js
javonet-ruby-sdk-2.5.2 lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js