Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { // Name of the Handler Name string // Handler is the initialized Handler object. Handler adapter.Handler // Adapter that was used to create this Entry. Adapter *adapter.Info // Signature of the configuration used to create this entry. Signature signature // contains filtered or unexported fields }
Entry in the handler table.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table contains a set of instantiated and configured adapter handlers.
func NewTable ¶
NewTable returns a new table, based on the given config snapshot. The table will re-use existing handlers as much as possible from the old table.
func (*Table) Cleanup ¶
Cleanup the old table by selectively closing handlers that are not used in the given table. The cleanup method is called on the "old" table, and the "current" table (that is based on the new config) is passed as a parameter. The Cleanup method selectively closes all adapters that are not used by the current table. This method will use perf counters on current will be used, instead of the perf counters on t. This ensures that appropriate config id dimension is used when reporting metrics.