Class: Baykit::BayServer::Agent::Multiplexer::WriteUnit
- Inherits:
-
Object
- Object
- Baykit::BayServer::Agent::Multiplexer::WriteUnit
- Defined in:
- lib/baykit/bayserver/agent/multiplexer/write_unit.rb
Instance Attribute Summary collapse
-
#adr ⇒ Object
readonly
Returns the value of attribute adr.
-
#buf ⇒ Object
readonly
Returns the value of attribute buf.
-
#listener ⇒ Object
readonly
Returns the value of attribute listener.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
- #done ⇒ Object
-
#initialize(buf, adr, tag, &lis) ⇒ WriteUnit
constructor
A new instance of WriteUnit.
Constructor Details
#initialize(buf, adr, tag, &lis) ⇒ WriteUnit
Returns a new instance of WriteUnit.
14 15 16 17 18 19 |
# File 'lib/baykit/bayserver/agent/multiplexer/write_unit.rb', line 14 def initialize(buf, adr, tag, &lis) @buf = buf @adr = adr @tag = tag @listener = lis end |
Instance Attribute Details
#adr ⇒ Object (readonly)
Returns the value of attribute adr.
10 11 12 |
# File 'lib/baykit/bayserver/agent/multiplexer/write_unit.rb', line 10 def adr @adr end |
#buf ⇒ Object (readonly)
Returns the value of attribute buf.
9 10 11 |
# File 'lib/baykit/bayserver/agent/multiplexer/write_unit.rb', line 9 def buf @buf end |
#listener ⇒ Object (readonly)
Returns the value of attribute listener.
12 13 14 |
# File 'lib/baykit/bayserver/agent/multiplexer/write_unit.rb', line 12 def listener @listener end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
11 12 13 |
# File 'lib/baykit/bayserver/agent/multiplexer/write_unit.rb', line 11 def tag @tag end |
Instance Method Details
#done ⇒ Object
21 22 23 24 25 |
# File 'lib/baykit/bayserver/agent/multiplexer/write_unit.rb', line 21 def done() if @listener != nil @listener.call() end end |