public class OdiOnDisconnectConfig
extends java.lang.Object
Constructor and Description |
---|
OdiOnDisconnectConfig(java.lang.String pCmd,
LogLevel pLogLevel,
java.util.Set pTransactionChannels,
boolean pShouldBePerformedOutsideTransactionChannels,
boolean pShouldCommitCmd,
boolean pShouldIgnoreErrors)
Create a new OdiOnDisconnectConfig
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommand()
Obtains the command to be performed during onDisconnect
|
LogLevel |
getLogLevel()
Obtains log level to be used when executing onDisconnect command.
|
java.util.Set |
getTransactionChannels()
Obtains the transaction channels for which the onDisconnect command should be performed.
|
boolean |
isShouldBePerformedOutsideTransactionChannels()
Returns whether the on disconnect command should also be performed outside transaction channels (i.e.
|
boolean |
isShouldCommitCommand()
Returns whether the on disconnect command should be committed, or not.
|
boolean |
isShouldIgnoreErrors()
Return whether the on disconnect command's errors should be ignored, or not.
|
public OdiOnDisconnectConfig(java.lang.String pCmd, LogLevel pLogLevel, java.util.Set pTransactionChannels, boolean pShouldBePerformedOutsideTransactionChannels, boolean pShouldCommitCmd, boolean pShouldIgnoreErrors) throws java.lang.IllegalArgumentException
pCmd
- - the onDisconnect command, can be nullpLogLevel
- - the log level to be applied when executing the command, LogLevel.LEVEL_3
will be used in case pLogLevel is nullpTransactionChannels
- - transaction channels to apply the commandpShouldBePerformedOutsideTransactionChannels
- - whether the command can be performed outside session executionpShouldCommitCmd
- - whether the command should be committedpShouldIgnoreErrors
- - whether errors should be ignoredjava.lang.IllegalArgumentException
- - in case of an illegal null parameter valuepublic LogLevel getLogLevel()
public java.lang.String getCommand()
public boolean isShouldCommitCommand()
public boolean isShouldIgnoreErrors()
public java.util.Set getTransactionChannels()
public boolean isShouldBePerformedOutsideTransactionChannels()