Class: Fluent::Buffer

Inherits:
Object
  • Object
show all
Includes:
Configurable
Defined in:
lib/fluent/buffer.rb

Direct Known Subclasses

BasicBuffer

Constant Summary

Constants included from Configurable

Configurable::CONFIG_TYPE_REGISTRY

Instance Method Summary collapse

Methods included from Configurable

#config, included, lookup_type, register_type

Constructor Details

#initializeBuffer

Returns a new instance of Buffer.



36
37
38
# File 'lib/fluent/buffer.rb', line 36

def initialize
  super
end

Instance Method Details

#before_shutdown(out) ⇒ Object



50
51
# File 'lib/fluent/buffer.rb', line 50

def before_shutdown(out)
end

#clear!Object

Raises:

  • (NotImplementedError)


69
70
71
# File 'lib/fluent/buffer.rb', line 69

def clear!
  raise NotImplementedError, "Implement this method in child class"
end

#configure(conf) ⇒ Object



40
41
42
# File 'lib/fluent/buffer.rb', line 40

def configure(conf)
  super
end

#emit(key, data, chain) ⇒ Object

Raises:

  • (NotImplementedError)


53
54
55
# File 'lib/fluent/buffer.rb', line 53

def emit(key, data, chain)
  raise NotImplementedError, "Implement this method in child class"
end

#keysObject

Raises:

  • (NotImplementedError)


57
58
59
# File 'lib/fluent/buffer.rb', line 57

def keys
  raise NotImplementedError, "Implement this method in child class"
end

#pop(out) ⇒ Object

Raises:

  • (NotImplementedError)


65
66
67
# File 'lib/fluent/buffer.rb', line 65

def pop(out)
  raise NotImplementedError, "Implement this method in child class"
end

#push(key) ⇒ Object

Raises:

  • (NotImplementedError)


61
62
63
# File 'lib/fluent/buffer.rb', line 61

def push(key)
  raise NotImplementedError, "Implement this method in child class"
end

#shutdownObject



47
48
# File 'lib/fluent/buffer.rb', line 47

def shutdown
end

#startObject



44
45
# File 'lib/fluent/buffer.rb', line 44

def start
end