Class: Pacer::Neo4j2::TransactionEventHandler
- Inherits:
-
Object
- Object
- Pacer::Neo4j2::TransactionEventHandler
- Defined in:
- lib/pacer-neo4j2/transaction_event_handler.rb
Instance Attribute Summary collapse
-
#before_commit ⇒ Object
Returns the value of attribute before_commit.
-
#graph ⇒ Object
readonly
Returns the value of attribute graph.
-
#on_commit ⇒ Object
Returns the value of attribute on_commit.
-
#on_commit_failed ⇒ Object
Returns the value of attribute on_commit_failed.
Instance Method Summary collapse
-
#initialize(graph) ⇒ TransactionEventHandler
constructor
A new instance of TransactionEventHandler.
- #unregister! ⇒ Object
Constructor Details
#initialize(graph) ⇒ TransactionEventHandler
Returns a new instance of TransactionEventHandler.
9 10 11 |
# File 'lib/pacer-neo4j2/transaction_event_handler.rb', line 9 def initialize(graph) @graph = graph end |
Instance Attribute Details
#before_commit ⇒ Object
Returns the value of attribute before_commit.
7 8 9 |
# File 'lib/pacer-neo4j2/transaction_event_handler.rb', line 7 def before_commit @before_commit end |
#graph ⇒ Object (readonly)
Returns the value of attribute graph.
6 7 8 |
# File 'lib/pacer-neo4j2/transaction_event_handler.rb', line 6 def graph @graph end |
#on_commit ⇒ Object
Returns the value of attribute on_commit.
7 8 9 |
# File 'lib/pacer-neo4j2/transaction_event_handler.rb', line 7 def on_commit @on_commit end |
#on_commit_failed ⇒ Object
Returns the value of attribute on_commit_failed.
7 8 9 |
# File 'lib/pacer-neo4j2/transaction_event_handler.rb', line 7 def on_commit_failed @on_commit_failed end |
Instance Method Details
#unregister! ⇒ Object
13 14 15 |
# File 'lib/pacer-neo4j2/transaction_event_handler.rb', line 13 def unregister! graph.drop_handler self end |