public class TAbstractInvocationRetryHandler extends java.lang.Object implements TInvocationRetryHandler
Constructor and Description |
---|
TAbstractInvocationRetryHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.Locale |
getLocale()
Gets the locale.
|
void |
prepare(TRetryInvocation invocation,
TCommandStatement commandStatement,
java.lang.String collection,
java.lang.String doctype,
java.lang.String docname,
boolean useTransactionMode)
Prepare an invocation.
|
TInputStream |
retryAfterInvoke(TRetryInvocation invocation,
TCommandStatement commandStatement,
TInputStream inputStream,
TInvocationException cause)
Handle the "result" after the invocation has invoked the base communication (HTTP, ..) or tried to do that.
|
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 |
setLocale(java.util.Locale locale)
Sets the locale.
|
void |
wrapUpAfterInvoke(TRetryInvocation invocation,
TCommandStatement commandStatement)
Wrap up an invocation after the invocation has invoked the base communication (HTTP, ..).
|
void |
wrapUpAfterSessionModeUpdate(TRetryInvocation invocation,
TCommandStatement commandStatement)
Wrap up an invocation.
|
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
invocation
- spcifies the invocation.commandStatement
- specifies the concrete Tamino specific action that should be fullfilled.
Session information is not yet set.collection
- is the collection of the Tamino DB to which the command statement might be related to.doctype
- within a schema of the given collection to which the command statement might be related to.docname
- is the name of the document to which the command statement might be related to.useTransactionState
- specifies whether the transaction state shall be considered.public TInputStream retryAfterInvoke(TRetryInvocation invocation, TCommandStatement commandStatement, TInputStream inputStream, TInvocationException cause)
retryAfterInvoke
in interface TInvocationRetryHandler
invocation
- spcifies the invocation.commandStatement
- specifies the concrete Tamino specific action that should be fullfilled.
Session information is written to the command statement.inputStream
- the returned input stream from the base communiciationcause
- the exception caused by writing the session information or null, when it has been successfull.public void wrapUpAfterInvoke(TRetryInvocation invocation, TCommandStatement commandStatement)
wrapUpAfterInvoke
in interface TInvocationRetryHandler
invocation
- specifies the invocation.commandStatement
- specifies the Tamino command that was issued.
Session information as returned by the previous Tamino command is set.public TInputStream retryAfterSessionModeUpdate(TRetryInvocation invocation, TCommandStatement commandStatement, TInputStream inputStream, TTransactionModeUpdateException cause)
retryAfterSessionModeUpdate
in interface TInvocationRetryHandler
invocation
- spcifies the invocation.commandStatement
- specifies the concrete Tamino specific action that should be fullfilled.
Session information is written to the command statement.inputStream
- the returned input stream from the base communiciationcause
- the exception caused by writing the session information or null, when it has been successfull.public void wrapUpAfterSessionModeUpdate(TRetryInvocation invocation, TCommandStatement commandStatement)
wrapUpAfterSessionModeUpdate
in interface TInvocationRetryHandler
invocation
- specifies the invocation.commandStatement
- specifies the Tamino command that was issued.
Session information as returned by the previous Tamino command is set.public void setLocale(java.util.Locale locale)
public java.util.Locale getLocale()
Copyright (c) 2017 Software AG. All Rights Reserved.