Sha256: 8fdbb1f3cccf3ecf294e4139f3c3fe9f11473845ee2da760d7a1f76b07566184

Contents?: true

Size: 469 Bytes

Versions: 15

Compression:

Stored size: 469 Bytes

Contents

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

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

class Uc51CommitEventAtFirstSubmit_1
  include Tengine::Core::Driveable

  # 最初に実行されるハンドラではsubmitしないので、ACKされない
  on:event51
  def event51
    puts "handler51_1"
  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_1.rb
tengine_core-1.2.1 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-1.2.0 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-1.1.0 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.39 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.38 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.37 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.36 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.35 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.34 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.33 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.32 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.31 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.30 examples2/uc51_commit_event_at_first_submit_1.rb
tengine_core-0.5.28 examples2/uc51_commit_event_at_first_submit_1.rb