TimeoutScheduler

class Object
trait Matchable
class Any

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.

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

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.

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