Class: Quark::Quark::Concurrent::EventContext

Inherits:
DatawireQuarkCore::QuarkObject show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/quark/concurrent.rb

Overview

Captures the current context, base class for all event source implementations

Constant Summary

Constants included from DatawireQuarkCore::Static

DatawireQuarkCore::Static::Unassigned

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DatawireQuarkCore::Static

_lazy_statics, static, unlazy_statics

Methods inherited from DatawireQuarkCore::QuarkObject

#to_s

Constructor Details

#initializeEventContext

Returns a new instance of EventContext.



187
188
189
190
191
192
193
# File 'lib/quark/concurrent.rb', line 187

def initialize()
    
    self.__init_fields__
    (self)._context = ::Quark.quark.concurrent.Context.current()

    nil
end

Instance Attribute Details

#_contextObject

Returns the value of attribute _context.



180
181
182
# File 'lib/quark/concurrent.rb', line 180

def _context
  @_context
end

Instance Method Details

#__init_fields__Object



231
232
233
234
235
236
# File 'lib/quark/concurrent.rb', line 231

def __init_fields__()
    
    self._context = nil

    nil
end

#_getClassObject



205
206
207
208
209
210
# File 'lib/quark/concurrent.rb', line 205

def _getClass()
    
    return "quark.concurrent.EventContext"

    nil
end

#_getField(name) ⇒ Object



212
213
214
215
216
217
218
219
220
# File 'lib/quark/concurrent.rb', line 212

def _getField(name)
    
    if ((name) == ("_context"))
        return (self)._context
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



222
223
224
225
226
227
228
229
# File 'lib/quark/concurrent.rb', line 222

def _setField(name, value)
    
    if ((name) == ("_context"))
        (self)._context = ::DatawireQuarkCore.cast(value) { ::Quark.quark.concurrent.Context }
    end

    nil
end

#getContextObject



198
199
200
201
202
203
# File 'lib/quark/concurrent.rb', line 198

def getContext()
    
    return (self)._context

    nil
end