Sha256: 536f0610fa2b8c28bfdba79bc3958a00fe00386aa93bffab4d9dc97604789e08

Contents?: true

Size: 480 Bytes

Versions: 15

Compression:

Stored size: 480 Bytes

Contents

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

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

class Uc51CommitEventAtFirstSubmit_3
  include Tengine::Core::Driveable

  # このハンドラでsubmitするが、すでにACKしているのでACKしない
  on:event51
  def event51
    puts "handler51_3"
    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_3.rb
tengine_core-1.2.1 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-1.2.0 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-1.1.0 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.39 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.38 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.37 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.36 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.35 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.34 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.33 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.32 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.31 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.30 examples2/uc51_commit_event_at_first_submit_3.rb
tengine_core-0.5.28 examples2/uc51_commit_event_at_first_submit_3.rb