Sha256: d4e6a4c6f59db0ffa896d67092a4cb5ea39837e5bb762bde30c5f085ac5fbe3a

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

module Pacer::Orient
  class FactoryContainer
    attr_reader :factory

    def initialize(f)
      @factory = f
    end

    def get
      factory.get
    end

    def getTx
      factory.getTx
    end

    def getNoTx
      factory.getNoTx
    end

    # Pacer calls shutdown on all cached graphs when it exits. Orient caches this factory.
    def shutdown
      factory.close
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pacer-orient-2.1.2-java lib/pacer-orient/factory_container.rb
pacer-orient-2.1.1-java lib/pacer-orient/factory_container.rb
pacer-orient-2.1.0-java lib/pacer-orient/factory_container.rb