|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.store.MessageGroupStoreReaper
public class MessageGroupStoreReaper
Convenient configurable component to allow explicit timed expiry of MessageGroup instances in a
MessageGroupStore. This component provides a no-args run() method that is useful for remote or timed
execution and a destroy() method that can optionally be called on shutdown.
| Constructor Summary | |
|---|---|
MessageGroupStoreReaper()
|
|
MessageGroupStoreReaper(MessageGroupStore messageGroupStore)
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
int |
getPhase()
|
boolean |
isAutoStartup()
|
boolean |
isRunning()
|
void |
run()
Expire all message groups older than the timeout provided. |
void |
setAutoStartup(boolean autoStartup)
|
void |
setExpireOnDestroy(boolean expireOnDestroy)
Flag to indicate that the stores should be expired when this component is destroyed (i.e. |
void |
setMessageGroupStore(MessageGroupStore messageGroupStore)
A message group store to expire according the other configurations. |
void |
setPhase(int phase)
|
void |
setTimeout(long timeout)
Timeout in milliseconds (default -1). |
void |
start()
|
void |
stop()
|
void |
stop(java.lang.Runnable callback)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageGroupStoreReaper(MessageGroupStore messageGroupStore)
public MessageGroupStoreReaper()
| Method Detail |
|---|
public void setExpireOnDestroy(boolean expireOnDestroy)
ApplicationContext is closed).
expireOnDestroy - the flag value to setpublic void setTimeout(long timeout)
run().
timeout - the timeout to setpublic void setMessageGroupStore(MessageGroupStore messageGroupStore)
messageGroupStore - the MessageGroupStore to set
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
public void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionpublic void run()
timeout provided. Normally this method would
be executed by a scheduled task.
run in interface java.lang.Runnablepublic final void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic final boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.Phasedpublic void setPhase(int phase)
public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void setAutoStartup(boolean autoStartup)
public void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecycle
|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||