public class ActorQueuePreallocBuilder<T extends RingItem>
extends java.lang.Object
Constructor and Description |
---|
ActorQueuePreallocBuilder() |
Modifier and Type | Method and Description |
---|---|
ActorQueuePreallocApi<T> |
build() |
com.caucho.env.actor.AbstractActorQueueBuilder<T> |
capacity(int capacity) |
ActorQueuePreallocBuilder<T> |
factory(RingItemFactory<T> factory) |
int |
getCapacity() |
RingItemFactory<T> |
getFactory() |
int |
getInitial() |
int |
getMultiworkerOffset() |
ActorProcessor<? super T>[] |
getProcessors() |
com.caucho.env.actor.AbstractActorQueueBuilder<T> |
initial(int initial) |
boolean |
isMultiworker() |
com.caucho.env.actor.AbstractActorQueueBuilder<T> |
multiworker(boolean isMultiworker) |
com.caucho.env.actor.AbstractActorQueueBuilder<T> |
multiworkerOffset(int offset) |
com.caucho.env.actor.AbstractActorQueueBuilder<T> |
processors(ActorProcessor<? super T>... processors) |
protected void |
validateBuilder() |
protected void |
validateFullBuilder() |
public ActorQueuePreallocBuilder<T> factory(RingItemFactory<T> factory)
public RingItemFactory<T> getFactory()
protected void validateBuilder()
public ActorQueuePreallocApi<T> build()
public com.caucho.env.actor.AbstractActorQueueBuilder<T> processors(ActorProcessor<? super T>... processors)
public ActorProcessor<? super T>[] getProcessors()
public com.caucho.env.actor.AbstractActorQueueBuilder<T> capacity(int capacity)
public int getCapacity()
public com.caucho.env.actor.AbstractActorQueueBuilder<T> initial(int initial)
public int getInitial()
public com.caucho.env.actor.AbstractActorQueueBuilder<T> multiworker(boolean isMultiworker)
public boolean isMultiworker()
public com.caucho.env.actor.AbstractActorQueueBuilder<T> multiworkerOffset(int offset)
public int getMultiworkerOffset()
protected void validateFullBuilder()