public class TInvocationRetryOnConnectionTimeoutHandler extends TAbstractInvocationRetryHandler
Constructor and Description |
---|
TInvocationRetryOnConnectionTimeoutHandler() |
Modifier and Type | Method and Description |
---|---|
void |
prepare(TRetryInvocation invocation,
TCommandStatement commandStatement,
java.lang.String collection,
java.lang.String doctype,
java.lang.String docname,
boolean useTransactionMode)
Prepare an invocation.
|
TInputStream |
retryAfterSessionModeUpdate(TRetryInvocation invocation,
TCommandStatement commandStatement,
TInputStream inputStream,
TTransactionModeUpdateException cause)
Handle the "result" after the invocation has been updated or tried to update the session information from the command statment.
|
void |
wrapUpAfterSessionModeUpdate(TRetryInvocation invocation,
TCommandStatement commandStatement)
Wrap up an invocation.
|
getLocale, retryAfterInvoke, setLocale, wrapUpAfterInvoke
public TInvocationRetryOnConnectionTimeoutHandler()
public void prepare(TRetryInvocation invocation, TCommandStatement commandStatement, java.lang.String collection, java.lang.String doctype, java.lang.String docname, boolean useTransactionMode)
prepare
in interface TInvocationRetryHandler
prepare
in class TAbstractInvocationRetryHandler
invocation
- spcifies the invocation.commandStatement
- specifies the concrete Tamino specific action that should be fulfilled.
Session information is not yet set.collection
- is the collection of the Tamino DB associated to the command.doctype
- within a schema of the given collection associated to the command.docname
- is the name of the document associated to the command.useTransactionState
- specifies whether the transaction state shall be considered.public TInputStream retryAfterSessionModeUpdate(TRetryInvocation invocation, TCommandStatement commandStatement, TInputStream inputStream, TTransactionModeUpdateException cause)
retryAfterSessionModeUpdate
in interface TInvocationRetryHandler
retryAfterSessionModeUpdate
in class TAbstractInvocationRetryHandler
invocation
- spcifies the invocation.commandStatement
- specifies the Tamino command that was issued.
Session information as returned by the previous Tamino command is set.inputStream
- the returned input stream from the base communicationcause
- the exception caused by writing the session information or null, when it has been successful.public void wrapUpAfterSessionModeUpdate(TRetryInvocation invocation, TCommandStatement commandStatement)
wrapUpAfterSessionModeUpdate
in interface TInvocationRetryHandler
wrapUpAfterSessionModeUpdate
in class TAbstractInvocationRetryHandler
invocation
- specifies the invocation.commandStatement
- specifies the Tamino command that was issued.
Session information as returned by the previous Tamino command is set.Copyright (c) 2017 Software AG. All Rights Reserved.