Sha256: 57e87f041904b091222bcecb8ef471b211e4e0515fd2eb9ca803cedac4be4a60

Contents?: true

Size: 686 Bytes

Versions: 2

Compression:

Stored size: 686 Bytes

Contents

from javonet.utils.ConnectionType import ConnectionType
from javonet.utils.connectionData.IConnectionData import IConnectionData


class InMemoryConnectionData(IConnectionData):
    @property
    def connection_type(self):
        return ConnectionType.InMemory

    @property
    def hostname(self):
        return ""

    def serialize_connection_data(self):
        return [self.connection_type.value, 0, 0, 0, 0, 0, 0]

    def __eq__(self, other):
        return isinstance(other, InMemoryConnectionData)

    def __hash__(self):
        hash_code = 593727026
        hash_code = hash_code * -1521134295 + hash(self.connection_type)
        return hash_code

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.4.10 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/InMemoryConnectionData.py
javonet-ruby-sdk-2.4.9 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/InMemoryConnectionData.py