public class DefaultProcessorSlotChain extends ProcessorSlotChain
| Constructor and Description |
|---|
DefaultProcessorSlotChain() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(AbstractLinkedProcessorSlot<?> protocolProcessor)
Add a processor to the head of this slot chain.
|
void |
addLast(AbstractLinkedProcessorSlot<?> protocolProcessor)
Add a processor to the tail of this slot chain.
|
void |
entry(Context context,
ResourceWrapper resourceWrapper,
Object t,
int count,
boolean prioritized,
Object... args)
Entrance of this slot.
|
void |
exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args)
Exit of this slot.
|
AbstractLinkedProcessorSlot<?> |
getNext() |
void |
setNext(AbstractLinkedProcessorSlot<?> next)
Same as
addLast(AbstractLinkedProcessorSlot). |
fireEntry, fireExitpublic void addFirst(AbstractLinkedProcessorSlot<?> protocolProcessor)
ProcessorSlotChainaddFirst in class ProcessorSlotChainprotocolProcessor - processor to be added.public void addLast(AbstractLinkedProcessorSlot<?> protocolProcessor)
ProcessorSlotChainaddLast in class ProcessorSlotChainprotocolProcessor - processor to be added.public void setNext(AbstractLinkedProcessorSlot<?> next)
addLast(AbstractLinkedProcessorSlot).setNext in class AbstractLinkedProcessorSlot<Object>next - processor to be added.public AbstractLinkedProcessorSlot<?> getNext()
getNext in class AbstractLinkedProcessorSlot<Object>public void entry(Context context, ResourceWrapper resourceWrapper, Object t, int count, boolean prioritized, Object... args) throws Throwable
ProcessorSlotpublic void exit(Context context, ResourceWrapper resourceWrapper, int count, Object... args)
ProcessorSlotcontext - current ContextresourceWrapper - current resourcecount - tokens neededargs - parameters of the original callCopyright © 2021 Alibaba Group. All rights reserved.