Class ReplyTimeoutMap
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultTimeoutMap<java.lang.String,ReplyHandler>
-
- icu.wwj.camel.component.rocketmq.reply.ReplyTimeoutMap
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.StatefulService,org.apache.camel.SuspendableService,org.apache.camel.TimeoutMap<java.lang.String,ReplyHandler>
public class ReplyTimeoutMap extends org.apache.camel.support.DefaultTimeoutMap<java.lang.String,ReplyHandler>
-
-
Constructor Summary
Constructors Constructor Description ReplyTimeoutMap(java.util.concurrent.ScheduledExecutorService executor, long requestMapPollTimeMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplyHandlerput(java.lang.String key, ReplyHandler value, long timeoutMillis)ReplyHandlerputIfAbsent(java.lang.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
-
-
-
-
Method Detail
-
put
public ReplyHandler put(java.lang.String key, ReplyHandler value, long timeoutMillis)
- Specified by:
putin interfaceorg.apache.camel.TimeoutMap<java.lang.String,ReplyHandler>- Overrides:
putin classorg.apache.camel.support.DefaultTimeoutMap<java.lang.String,ReplyHandler>
-
putIfAbsent
public ReplyHandler putIfAbsent(java.lang.String key, ReplyHandler value, long timeoutMillis)
- Specified by:
putIfAbsentin interfaceorg.apache.camel.TimeoutMap<java.lang.String,ReplyHandler>- Overrides:
putIfAbsentin classorg.apache.camel.support.DefaultTimeoutMap<java.lang.String,ReplyHandler>
-
-