Sha256: 61f19adb2d565dc901dee00485a690784abf36fecc17df59043249aee6988900

Contents?: true

Size: 450 Bytes

Versions: 15

Compression:

Stored size: 450 Bytes

Contents

# -*- coding: utf-8 -*-
require 'tengine/core'

# カーネルはイベントevent51を受け取ったらDBに保存。
# 対応するハンドラを実行して最初にsubmitされたときにACKを返す。
ack_policy(:at_first_submit, :event51)

class Uc51CommitEventAtFirstSubmit_2
  include Tengine::Core::Driveable

  # このハンドラでsubmitするので、ACKする
  on:event51
  def event51
    puts "handler51_2"
    submit
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tengine_core-1.2.2 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-1.2.1 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-1.2.0 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-1.1.0 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.39 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.38 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.37 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.36 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.35 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.34 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.33 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.32 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.31 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.30 examples2/uc51_commit_event_at_first_submit_2.rb
tengine_core-0.5.28 examples2/uc51_commit_event_at_first_submit_2.rb