package concurrency
This package is a simple utility set for aliases and concurrency operations.
- Alphabetic
- By Inheritance
- concurrency
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class PacketReaderThread extends Thread with JustifiedCloseable
A simple abstract class to easily handle packet reading.
- class SimpleAsyncTask[A] extends WorkerTask[A] with AsyncTaskController
Value Members
- def currentThread: Thread
Alias for Thread.currentThread
Alias for Thread.currentThread
- returns
the current Java Thread reference
- def now(): Long
Alias for System.currentTimeMillis
Alias for System.currentTimeMillis
- returns
the current time in milliseconds since midnight, January 1, 1970 UTC
- def timedPark(ref: AnyRef = null, timeout: Long): Long
Handles a monitor lock on the provided reference, excepted that the time the thread had wait the monitor of the object is returned.
Handles a monitor lock on the provided reference, excepted that the time the thread had wait the monitor of the object is returned.
- timeout
the maximum amount of time to wait
- returns
the time the thread waited on the object.
- def timedWait(lock: AnyRef): Long
Handles a monitor lock on the provided reference, excepted that the time the thread had wait the monitor of the object is returned.
Handles a monitor lock on the provided reference, excepted that the time the thread had wait the monitor of the object is returned.
- lock
the object to wait.
- returns
the time the thread waited on the object.
- object PacketReaderThread
- object SimpleAsyncTask