Class ReplyTimeoutMap
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultTimeoutMap<String,ReplyHandler>
-
- org.apache.camel.component.rocketmq.reply.ReplyTimeoutMap
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
,org.apache.camel.TimeoutMap<String,ReplyHandler>
public class ReplyTimeoutMap extends org.apache.camel.support.DefaultTimeoutMap<String,ReplyHandler>
-
-
Constructor Summary
Constructors Constructor Description ReplyTimeoutMap(ScheduledExecutorService executor, long requestMapPollTimeMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplyHandler
put(String key, ReplyHandler value, long timeoutMillis)
ReplyHandler
putIfAbsent(String key, ReplyHandler value, long timeoutMillis)
-
Methods inherited from class org.apache.camel.support.DefaultTimeoutMap
addListener, currentTime, doStart, doStop, get, getExecutor, getPurgePollTime, isValidForEviction, purge, remove, schedulePoll, size, updateExpireTime
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
ReplyTimeoutMap
public ReplyTimeoutMap(ScheduledExecutorService executor, long requestMapPollTimeMillis)
-
-
Method Detail
-
put
public ReplyHandler put(String key, ReplyHandler value, long timeoutMillis)
- Specified by:
put
in interfaceorg.apache.camel.TimeoutMap<String,ReplyHandler>
- Overrides:
put
in classorg.apache.camel.support.DefaultTimeoutMap<String,ReplyHandler>
-
putIfAbsent
public ReplyHandler putIfAbsent(String key, ReplyHandler value, long timeoutMillis)
- Specified by:
putIfAbsent
in interfaceorg.apache.camel.TimeoutMap<String,ReplyHandler>
- Overrides:
putIfAbsent
in classorg.apache.camel.support.DefaultTimeoutMap<String,ReplyHandler>
-
-