class PersistentQueue[T] extends AnyRef
Persistent queue using Chronicle Queue as implementation.
- T
The type of elements to be stored in the queue.
- Alphabetic
- By Inheritance
- PersistentQueue
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PersistentQueue(persistDir: File, indexName: String)(implicit serializer: QueueSerializer[T])
- new PersistentQueue(persistDir: File)(implicit serializer: QueueSerializer[T])
- new PersistentQueue(config: Config, indexName: String)(implicit serializer: QueueSerializer[T])
- new PersistentQueue(config: Config)(implicit serializer: QueueSerializer[T])
- new PersistentQueue(config: QueueConfig, onCommitCallback: (Int) ⇒ Unit = _ => {}, indexName: String = "tailer.idx")(implicit serializer: QueueSerializer[T])
Type Members
-
class
ResourceManager extends StoreFileListener
Removes queue's data files automatically after all outputPorts releases processed queue files.
Removes queue's data files automatically after all outputPorts releases processed queue files. The callback
onReleased
is called once processed.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
Closes the queue and all its persistent storage.
-
def
commit(outputPortId: Int, index: Long, verify: Boolean = true): Unit
Commits the queue's index, this index is mounted when the queue is initialized next time
Commits the queue's index, this index is mounted when the queue is initialized next time
- outputPortId
The id of the output port
- index
to be committed for next read
-
def
dequeue(outputPortId: Int = 0): Option[Event[T]]
Fetches the first element from the queue and removes it from the queue.
Fetches the first element from the queue and removes it from the queue.
- returns
The first element in the queue, or None if the queue is empty.
-
def
enqueue(element: T): Unit
Adds an element to the queue.
Adds an element to the queue.
- element
The element to be added.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit val serializer: QueueSerializer[T]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val totalOutputPorts: Int
-
def
verifyCommitOrder(outputPortId: Int, index: Long): Unit
- Attributes
- protected[com.codacy.stream]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def withOnCommitCallback(onCommitCallback: (Int) ⇒ Unit): PersistentQueue[T]