public class DispatcherBuilder extends Object
Dispatcher| Modifier and Type | Field and Description |
|---|---|
protected ActorScheduler |
actorScheduler |
protected boolean |
allocateInMemory |
protected String |
bufferFileName |
protected int |
bufferSize |
protected org.agrona.concurrent.AtomicBuffer |
countersBuffer |
protected org.agrona.concurrent.status.CountersManager |
countersManager |
protected String |
dispatcherName |
protected int |
frameMaxLength |
protected int |
initialPartitionId |
protected int |
mode |
protected ByteBuffer |
rawBuffer |
protected String[] |
subscriptionNames |
| Constructor and Description |
|---|
DispatcherBuilder(String dispatcherName) |
| Modifier and Type | Method and Description |
|---|---|
DispatcherBuilder |
actorScheduler(ActorScheduler actorScheduler) |
DispatcherBuilder |
allocateInBuffer(ByteBuffer rawBuffer)
Provide a raw buffer to place the dispatcher's logbuffer in.
|
DispatcherBuilder |
allocateInFile(String fileName)
Allocate the dispatcher's buffer in the provided file by mapping it into memory.
|
DispatcherBuilder |
bufferSize(ByteValue byteValue)
The number of bytes the buffer is be able to contain.
|
Dispatcher |
build() |
DispatcherBuilder |
frameMaxLength(int frameMaxLength)
The max length of the data section of a frame
|
protected AllocatedBuffer |
initAllocatedBuffer(int partitionSize) |
DispatcherBuilder |
initialPartitionId(int initialPartitionId) |
DispatcherBuilder |
modePipeline()
Pipeline-Mode: a subscription can only read a fragment / block if the previous subscription
completes reading.
|
DispatcherBuilder |
modePubSub()
Publish-Subscribe-Mode (default): multiple subscriptions can read the same fragment / block
concurrently in any order.
|
DispatcherBuilder |
name(String name) |
DispatcherBuilder |
subscriptions(String... subscriptionNames)
Predefined subscriptions which will be created on startup in the order as they are declared.
|
protected boolean allocateInMemory
protected ByteBuffer rawBuffer
protected String bufferFileName
protected int bufferSize
protected int frameMaxLength
protected org.agrona.concurrent.status.CountersManager countersManager
protected String dispatcherName
protected org.agrona.concurrent.AtomicBuffer countersBuffer
protected ActorScheduler actorScheduler
protected String[] subscriptionNames
protected int mode
protected int initialPartitionId
public DispatcherBuilder(String dispatcherName)
public DispatcherBuilder name(String name)
public DispatcherBuilder allocateInBuffer(ByteBuffer rawBuffer)
allocateInFile(String)public DispatcherBuilder allocateInFile(String fileName)
public DispatcherBuilder bufferSize(ByteValue byteValue)
public DispatcherBuilder actorScheduler(ActorScheduler actorScheduler)
public DispatcherBuilder frameMaxLength(int frameMaxLength)
public DispatcherBuilder initialPartitionId(int initialPartitionId)
public DispatcherBuilder subscriptions(String... subscriptionNames)
public DispatcherBuilder modePubSub()
modePipeline()public DispatcherBuilder modePipeline()
subscriptions(String...) that defines the order.modePubSub()public Dispatcher build()
protected AllocatedBuffer initAllocatedBuffer(int partitionSize)
Copyright © 2017–2018 camunda services GmbH. All rights reserved.