TimeoutScheduler

com.github.mauricio.async.db.pool.TimeoutScheduler

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def eventLoopGroup: EventLoopGroup

The event loop group to be used for scheduling.

The event loop group to be used for scheduling.

Attributes

def onTimeout: Unit

Implementors should decide here what they want to do when a timeout occur

Implementors should decide here what they want to do when a timeout occur

Attributes

Concrete methods

def addTimeout[A](promise: Promise[A], durationOption: Option[Duration])(implicit executionContext: ExecutionContext): Option[ScheduledFuture[_]]
def isTimeouted: Boolean

We need this property as isClosed takes time to complete and we don't want the connection to be used again.

We need this property as isClosed takes time to complete and we don't want the connection to be used again.

Attributes

def schedule(block: => Unit, duration: Duration): ScheduledFuture[_]