Class LastMessageTimestampGenerator
java.lang.Object
com.adaptris.core.services.metadata.timestamp.LastMessageTimestampGenerator
- All Implemented Interfaces:
ComponentLifecycle
,TimestampGenerator
Timestamp Generator implementation that returns the last
Date
a message passed through the service.- Since:
- 3.5.0
- See Also:
-
Constructor Details
-
LastMessageTimestampGenerator
public LastMessageTimestampGenerator()
-
-
Method Details
-
generateTimestamp
- Specified by:
generateTimestamp
in interfaceTimestampGenerator
- Throws:
ServiceException
-
init
Description copied from interface:ComponentLifecycle
Initialises the component.Component initialisation includes config verification, creation of connections etc.
- Specified by:
init
in interfaceComponentLifecycle
- Throws:
CoreException
- wrapping any underlyingException
s- See Also:
-
start
Description copied from interface:ComponentLifecycle
Starts the component.Once a component is started it should be ready to process messages. In the case of
AdaptrisMessageConsumer
, calling start will begin message delivery.- Specified by:
start
in interfaceComponentLifecycle
- Throws:
CoreException
- wrapping any underlyingException
s- See Also:
-
stop
public void stop()Description copied from interface:ComponentLifecycle
Stop the componentA stopped component is not expected to be ready to process messages. In the case of
AdaptrisMessageConsumer
, calling stop will pause message delivery. Throwing aRuntimeException
may cause unintended consequences- Specified by:
stop
in interfaceComponentLifecycle
- See Also:
-
close
public void close()Description copied from interface:ComponentLifecycle
Closes the component.A closed component should release any connections it uses, etc. and clean up completely. Throwing a
RuntimeException
may cause unintended consequences- Specified by:
close
in interfaceComponentLifecycle
- See Also:
-