public class MessageDispatch15Interceptor extends MessageDispatchInterceptor
ChannelInterceptor.InterceptorEvent
Modifier and Type | Field and Description |
---|---|
protected AtomicLong |
currentSize |
protected ExecutorService |
executor |
protected long |
keepAliveTime |
protected int |
maxSpareThreads |
protected int |
maxThreads |
alwaysSend, maxQueueSize, msgDispatchThread, queue, run, useDeepClone
optionFlag
Constructor and Description |
---|
MessageDispatch15Interceptor() |
Modifier and Type | Method and Description |
---|---|
long |
addAndGetCurrentSize(long inc) |
boolean |
addToQueue(ChannelMessage msg,
Member[] destination,
InterceptorPayload payload) |
long |
getCurrentSize() |
long |
getKeepAliveTime() |
int |
getMaxSpareThreads() |
int |
getMaxThreads() |
LinkObject |
removeFromQueue() |
long |
setAndGetCurrentSize(long value) |
void |
setKeepAliveTime(long keepAliveTime) |
void |
setMaxSpareThreads(int maxSpareThreads) |
void |
setMaxThreads(int maxThreads) |
void |
startQueue() |
void |
stopQueue() |
getMaxQueueSize, getUseDeepClone, isAlwaysSend, run, sendAsyncData, sendMessage, setAlwaysSend, setMaxQueueSize, setOptionFlag, setUseDeepClone, start, stop
accept, fireInterceptorEvent, getChannel, getLocalMember, getMember, getMembers, getNext, getOptionFlag, getPrevious, hasMembers, heartbeat, memberAdded, memberDisappeared, messageReceived, okToProcess, setChannel, setNext, setPrevious
protected AtomicLong currentSize
protected ExecutorService executor
protected int maxThreads
protected int maxSpareThreads
protected long keepAliveTime
public long getCurrentSize()
getCurrentSize
in class MessageDispatchInterceptor
public long addAndGetCurrentSize(long inc)
addAndGetCurrentSize
in class MessageDispatchInterceptor
public long setAndGetCurrentSize(long value)
setAndGetCurrentSize
in class MessageDispatchInterceptor
public boolean addToQueue(ChannelMessage msg, Member[] destination, InterceptorPayload payload)
addToQueue
in class MessageDispatchInterceptor
public LinkObject removeFromQueue()
removeFromQueue
in class MessageDispatchInterceptor
public void startQueue()
startQueue
in class MessageDispatchInterceptor
public void stopQueue()
stopQueue
in class MessageDispatchInterceptor
public long getKeepAliveTime()
public int getMaxSpareThreads()
public int getMaxThreads()
public void setKeepAliveTime(long keepAliveTime)
public void setMaxSpareThreads(int maxSpareThreads)
public void setMaxThreads(int maxThreads)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.