Class: Contender::Pool::RejectionPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/contender/pool/rejection_policy.rb

Overview

Represents the strategy to use when the pool executor rejects a task

Instance Method Summary collapse

Instance Method Details

#on_rejection(task, executor) ⇒ undefined

This method is abstract.

Parameters:

Returns:

  • (undefined)

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/contender/pool/rejection_policy.rb', line 9

def on_rejection(task, executor)
  raise NotImplementedError
end